summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-26 20:43:14 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-26 20:43:14 -0400
commit5f7e1a027309d6a7d4febb08650fcf105398f057 (patch)
tree8c1330d90e7239ff4d54b895ef56c231a348a24b
parentef0a090c31d8890ff069f387ba9b94e744014768 (diff)
downloaddecky-lsfg-vk-5f7e1a027309d6a7d4febb08650fcf105398f057.tar.gz
decky-lsfg-vk-5f7e1a027309d6a7d4febb08650fcf105398f057.zip
feat: grey out hdr and enable wsi toggles based on current states to avoid conflicts
-rw-r--r--package.json2
-rw-r--r--src/components/ConfigurationSection.tsx14
2 files changed, 12 insertions, 4 deletions
diff --git a/package.json b/package.json
index d56a9f5..237961c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "decky-lossless-scaling-vk",
- "version": "0.7.4",
+ "version": "0.7.5",
"description": "Use Lossless Scaling on the Steam Deck using the lsfg-vk vulkan layer",
"type": "module",
"scripts": {
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index d208f97..93d13a3 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -116,8 +116,9 @@ export function ConfigurationSection({
<PanelSectionRow>
<ToggleField
label="HDR Mode"
- description="Enables HDR mode (only for games that support HDR)"
+ description={config.enable_wsi ? "Enables HDR mode (only for games that support HDR)" : "Enable WSI in the workarounds menu to unlock HDR toggle"}
checked={config.hdr_mode}
+ disabled={!config.enable_wsi}
onChange={(value) => onConfigChange(HDR_MODE, value)}
/>
</PanelSectionRow>
@@ -164,9 +165,16 @@ export function ConfigurationSection({
<PanelSectionRow>
<ToggleField
label="Enable WSI"
- description="Enable Gamescope WSI Layer, disable if frame generation isn't applying or isn't feeling smooth (use with HDR off)"
+ description="Re-Enable Gamescope WSI Layer. Requires game restart to apply."
checked={config.enable_wsi}
- onChange={(value) => onConfigChange(ENABLE_WSI, value)}
+ disabled={config.hdr_mode}
+ onChange={(value) => {
+ if (!value && config.hdr_mode) {
+ // Turn off HDR when disabling WSI
+ onConfigChange(HDR_MODE, false);
+ }
+ onConfigChange(ENABLE_WSI, value);
+ }}
/>
</PanelSectionRow>