mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
added open store button
This commit is contained in:
@@ -9,7 +9,7 @@ const PluginView: VFC = () => {
|
|||||||
|
|
||||||
if (activePlugin) {
|
if (activePlugin) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div style={{height: '100%'}}>
|
||||||
<div style={{ position: 'absolute', top: '3px', left: '16px', zIndex: 20 }}>
|
<div style={{ position: 'absolute', top: '3px', left: '16px', zIndex: 20 }}>
|
||||||
<DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={closeActivePlugin}>
|
<DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={closeActivePlugin}>
|
||||||
<FaArrowLeft style={{ display: 'block' }} />
|
<FaArrowLeft style={{ display: 'block' }} />
|
||||||
|
|||||||
@@ -1,13 +1,23 @@
|
|||||||
import { staticClasses } from 'decky-frontend-lib';
|
import { staticClasses, DialogButton } from 'decky-frontend-lib';
|
||||||
import { VFC } from 'react';
|
import { VFC } from 'react';
|
||||||
|
import { FaShoppingBag } from "react-icons/fa";
|
||||||
|
|
||||||
import { useDeckyState } from './DeckyState';
|
import { useDeckyState } from './DeckyState';
|
||||||
|
|
||||||
const TitleView: VFC = () => {
|
const TitleView: VFC = () => {
|
||||||
const { activePlugin } = useDeckyState();
|
const { activePlugin } = useDeckyState();
|
||||||
|
|
||||||
|
const openPluginStore = () => fetch("http://127.0.0.1:1337/methods/open_plugin_store", {method: "POST"});
|
||||||
|
|
||||||
if (activePlugin === null) {
|
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 (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user