diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-10-20 12:21:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 12:21:02 -0400 |
| commit | 76c1ec79a3343c356298bad383845cade214061d (patch) | |
| tree | e9895aa7f298928a04ce863b6dcb8b94a1fa67a3 /src | |
| parent | 22fd2c9fdd26250fff22a4c1f810eeb8cc4c941d (diff) | |
| parent | a7f7d5878a037fd59fb3257daf9d5e22c63ef9e8 (diff) | |
| download | decky-lsfg-vk-76c1ec79a3343c356298bad383845cade214061d.tar.gz decky-lsfg-vk-76c1ec79a3343c356298bad383845cade214061d.zip | |
Merge pull request #188 from xXJSONDeruloXx/pancake-cleanup
Pancake cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 11 | ||||
| -rw-r--r-- | src/components/Content.tsx | 8 | ||||
| -rw-r--r-- | src/components/InstallationButton.tsx | 4 | ||||
| -rw-r--r-- | src/components/ProfileManagement.tsx | 62 | ||||
| -rw-r--r-- | src/components/index.ts | 14 | ||||
| -rwxr-xr-x | src/index.tsx | 2 |
6 files changed, 53 insertions, 48 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index 9afc650..b098b32 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -4,7 +4,7 @@ import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri"; import { ConfigurationData } from "../config/configSchema"; import { FpsMultiplierControl } from "./FpsMultiplierControl"; import { - NO_FP16, FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, + FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE, MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK } from "../config/generatedConfigSchema"; @@ -99,15 +99,6 @@ export function ConfigurationSection({ <PanelSectionRow> <ToggleField - label="Force Disable FP16" - description="Force-disable FP16 acceleration" - checked={config.no_fp16} - onChange={(value) => onConfigChange(NO_FP16, value)} - /> - </PanelSectionRow> - - <PanelSectionRow> - <ToggleField label="HDR Mode" description="Enables HDR mode (only for games that support HDR)" checked={config.hdr_mode} diff --git a/src/components/Content.tsx b/src/components/Content.tsx index d3c04d3..fdb8672 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -8,8 +8,8 @@ import { InstallationButton } from "./InstallationButton"; import { ConfigurationSection } from "./ConfigurationSection"; import { ProfileManagement } from "./ProfileManagement"; import { UsageInstructions } from "./UsageInstructions"; -import { WikiButton } from "./WikiButton"; -import { ClipboardButton } from "./ClipboardButton"; +// import { WikiButton } from "./WikiButton"; +// import { ClipboardButton } from "./ClipboardButton"; import { SmartClipboardButton } from "./SmartClipboardButton"; import { FgmodClipboardButton } from "./FgmodClipboardButton"; // import { ClipboardDisplay } from "./ClipboardDisplay"; @@ -135,8 +135,8 @@ export function Content() { <UsageInstructions config={config} /> {/* Wiki and clipboard buttons - always available for documentation */} - <WikiButton /> - <ClipboardButton /> + {/* <WikiButton /> */} + {/* <ClipboardButton /> */} {/* Plugin Update Checker */} {/* <PluginUpdateChecker /> */} diff --git a/src/components/InstallationButton.tsx b/src/components/InstallationButton.tsx index 7892678..d0f2ce5 100644 --- a/src/components/InstallationButton.tsx +++ b/src/components/InstallationButton.tsx @@ -37,7 +37,7 @@ export function InstallationButton({ return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> <FaTrash /> - <div>Uninstall lsfg-vk</div> + <div>Uninstall LSFG-VK</div> </div> ); } @@ -45,7 +45,7 @@ export function InstallationButton({ return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> <FaDownload /> - <div>Install lsfg-vk</div> + <div>Install LSFG-VK</div> </div> ); }; diff --git a/src/components/ProfileManagement.tsx b/src/components/ProfileManagement.tsx index 6e2a8f8..d3d15a9 100644 --- a/src/components/ProfileManagement.tsx +++ b/src/components/ProfileManagement.tsx @@ -14,7 +14,7 @@ import { AppOverview, Router } from "@decky/ui"; -import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri"; +import { RiArrowDownSFill, RiArrowUpSFill, RiEditLine, RiDeleteBinLine } from "react-icons/ri"; import { getProfiles, createProfile, @@ -405,6 +405,7 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa label="" childrenLayout="below" childrenContainerWidth="max" + bottomSeparator="none" > <Dropdown rgOptions={profileOptions} @@ -416,23 +417,50 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa </PanelSectionRow> <PanelSectionRow> - <ButtonItem - layout="below" - onClick={handleRenameProfile} - disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp} + <Focusable + style={{ + display: "flex", + alignItems: "center", + gap: "8px", + width: "100%", + padding: "0", + margin: "0", + marginTop: "8px" + }} + flow-children="horizontal" > - Rename - </ButtonItem> - </PanelSectionRow> - - <PanelSectionRow> - <ButtonItem - layout="below" - onClick={handleDeleteProfile} - disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp} - > - Delete - </ButtonItem> + <DialogButton + style={{ + height: "40px", + flex: 1, + display: "flex", + alignItems: "center", + justifyContent: "center", + padding: "10px", + minWidth: "0", + }} + onClick={handleRenameProfile} + disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp} + > + <RiEditLine size={20} /> + </DialogButton> + + <DialogButton + style={{ + height: "40px", + flex: 1, + display: "flex", + alignItems: "center", + justifyContent: "center", + padding: "10px", + minWidth: "0", + }} + onClick={handleDeleteProfile} + disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp} + > + <RiDeleteBinLine size={20} /> + </DialogButton> + </Focusable> </PanelSectionRow> </> )} diff --git a/src/components/index.ts b/src/components/index.ts deleted file mode 100644 index 260d192..0000000 --- a/src/components/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { Content } from "./Content"; -export { StatusDisplay } from "./StatusDisplay"; -export { InstallationButton } from "./InstallationButton"; -export { ConfigurationSection } from "./ConfigurationSection"; -export { FpsMultiplierControl } from "./FpsMultiplierControl"; -export { UsageInstructions } from "./UsageInstructions"; -export { WikiButton } from "./WikiButton"; -export { SmartClipboardButton } from "./SmartClipboardButton"; -export { FgmodClipboardButton } from "./FgmodClipboardButton"; -// export { ClipboardDisplay } from "./ClipboardDisplay"; -// export { PluginUpdateChecker } from "./PluginUpdateChecker"; -export { NerdStuffModal } from "./NerdStuffModal"; -export { default as FlatpaksModal } from "./FlatpaksModal"; -export { ProfileManagement } from "./ProfileManagement"; diff --git a/src/index.tsx b/src/index.tsx index 799f2ff..bbe4cd3 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import { staticClasses } from "@decky/ui"; import { definePlugin } from "@decky/api"; import { GiPlasticDuck } from "react-icons/gi"; -import { Content } from "./components"; +import { Content } from "./components/Content"; export default definePlugin(() => { console.log("decky-lsfg-vk plugin initializing"); |
