From f61227e7fc1c524ab118d22c32fb90af8a511fef Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 28 Jun 2026 20:25:23 +0800 Subject: [PATCH] fix(plugin): move Recording to top, clean up setup guide layout --- .../decky-vault/src/components/main-panel.tsx | 176 +++++++++--------- 1 file changed, 83 insertions(+), 93 deletions(-) diff --git a/plugins/decky-vault/src/components/main-panel.tsx b/plugins/decky-vault/src/components/main-panel.tsx index d80fcb1..4774ca8 100644 --- a/plugins/decky-vault/src/components/main-panel.tsx +++ b/plugins/decky-vault/src/components/main-panel.tsx @@ -212,77 +212,6 @@ export default function MainPanel({ return ( <> - {/* ── Status ──────────────────────────────────────────────── */} - - - -
- - Check MangoHud Status -
-
-
- {mangohudStatus.checked && ( - -
- {mangohudStatus.installed ? ( - <> MangoHud {mangohudStatus.version} - ) : ( - <> MangoHud not found - )} -
-
- )} - - - {keyTestStatus === "testing" ? "Testing..." : "Test API Key"} - {keyTestStatus === "valid" && } - {keyTestStatus === "invalid" && } - - - {keyTestMessage && ( - -
- {keyTestMessage} -
-
- )} -
- - {/* ── Usage Instructions ──────────────────────────────────── */} - - -
- Add this to your game's Steam launch options, then press Start Recording before launching. -
-
- -
- mangohud %command% -
-
- - -
- - {copiedLaunchOpt ? "Copied to clipboard" : "Copy Launch Option"} -
-
-
- -
- The MangoHud config is stored in ~/.config/MangoHud/MangoHud.conf -
-
-
- {/* ── Recording ──────────────────────────────────────────── */} {error && ( @@ -353,6 +282,77 @@ export default function MainPanel({ )} + {/* ── Status ──────────────────────────────────────────────── */} + + + +
+ + Check MangoHud Status +
+
+
+ {mangohudStatus.checked && ( + +
+ {mangohudStatus.installed ? ( + <> MangoHud {mangohudStatus.version} + ) : ( + <> MangoHud not found + )} +
+
+ )} + + + {keyTestStatus === "testing" ? "Testing..." : "Test API Key"} + {keyTestStatus === "valid" && } + {keyTestStatus === "invalid" && } + + + {keyTestMessage && ( + +
+ {keyTestMessage} +
+
+ )} +
+ + {/* ── Usage Instructions ──────────────────────────────────── */} + + +
+ Add this to your game's Steam launch options, then press Start Recording before launching. +
+
+ +
+ mangohud %command% +
+
+ + +
+ + {copiedLaunchOpt ? "Copied to clipboard" : "Copy Launch Option"} +
+
+
+ +
+ Config stored in ~/.config/MangoHud/MangoHud.conf +
+
+
+ {/* ── MangoHud Config ────────────────────────────────────── */} @@ -451,28 +451,18 @@ export default function MainPanel({
- Steam Deck (SteamOS):
- MangoHud is pre-installed. Enable it per-game by adding
- - mangohud %command% - - to the game's Steam launch options (right-click game → Properties → Launch Options). - -

- Other Linux handhelds (ROG Ally, Legion Go):
- Install via package manager: - - sudo apt install mangohud - - or Flatpak: - - flatpak install flathub org.freedesktop.Platform.VulkanLayer.MangoHud - - -

- Troubleshooting:
- • Log file empty? Check MangoHud is enabled for the game and the config was written.
- • Not attaching? Try adding mangohud %command% to Steam launch options explicitly. + Steam Deck (SteamOS): MangoHud is pre-installed. Add mangohud %command% to your game's Steam launch options (right-click → Properties → Launch Options). +
+
+ +
+ Other Linux: Install via sudo apt install mangohud or flatpak install ...VulkanLayer.MangoHud. See{" "} + github.com/flightlessmango/MangoHud. +
+
+ +
+ Troubleshooting: Log empty? Check MangoHud is enabled. Not attaching? Add mangohud %command% to launch options explicitly.