diff options
Diffstat (limited to 'frontend/src/components/TitleView.tsx')
| -rw-r--r-- | frontend/src/components/TitleView.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx index 4b4a6825..a9e1017a 100644 --- a/frontend/src/components/TitleView.tsx +++ b/frontend/src/components/TitleView.tsx @@ -1,13 +1,23 @@ -import { staticClasses } from 'decky-frontend-lib'; +import { staticClasses, DialogButton } from 'decky-frontend-lib'; import { VFC } from 'react'; +import { FaShoppingBag } from "react-icons/fa"; import { useDeckyState } from './DeckyState'; const TitleView: VFC = () => { const { activePlugin } = useDeckyState(); + const openPluginStore = () => fetch("http://127.0.0.1:1337/methods/open_plugin_store", {method: "POST"}); + if (activePlugin === null) { - return <div className={staticClasses.Title}>Decky</div>; + return <div className={staticClasses.Title}> + Decky + <div style={{ position: 'absolute', top: '3px', right: '16px', zIndex: 20 }}> + <DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={openPluginStore}> + <FaShoppingBag style={{ display: 'block' }} /> + </DialogButton> + </div> + </div>; } return ( |
