From 9619c52720c97ef74842b15aa732dd0a8d6fb26a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Jun 2022 23:22:27 -0400 Subject: add settings page with install from URL option --- frontend/src/components/TitleView.tsx | 53 +++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 6 deletions(-) (limited to 'frontend/src/components/TitleView.tsx') diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx index 4b4a6825..babcd316 100644 --- a/frontend/src/components/TitleView.tsx +++ b/frontend/src/components/TitleView.tsx @@ -1,18 +1,59 @@ -import { staticClasses } from 'decky-frontend-lib'; -import { VFC } from 'react'; +import { DialogButton, Focusable, Router, staticClasses } from 'decky-frontend-lib'; +import { CSSProperties, VFC } from 'react'; +import { FaArrowLeft, FaCog, FaStore } from 'react-icons/fa'; import { useDeckyState } from './DeckyState'; +const titleStyles: CSSProperties = { + display: 'flex', + paddingTop: '3px', + paddingBottom: '14px', + paddingRight: '16px', + boxShadow: 'unset', +}; + const TitleView: VFC = () => { - const { activePlugin } = useDeckyState(); + const { activePlugin, closeActivePlugin } = useDeckyState(); + + const onSettingsClick = () => { + Router.CloseSideMenus(); + Router.Navigate('/decky/settings'); + }; + + const onStoreClick = () => { + Router.CloseSideMenus(); + Router.Navigate('/decky/store'); + }; if (activePlugin === null) { - return
Decky
; + return ( + + + + +
Decky
+ + + +
+ ); } return ( -
- {activePlugin.name} +
+ + + +
{activePlugin.name}
); }; -- cgit v1.2.3