summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-22 12:11:53 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-22 12:11:53 -0400
commitf8139896f2077a95a78a54c818637f78dd102de8 (patch)
tree1ae4b236c66e0160c363c5ab8e7bafb84fb1fdb1 /src
parentdfe4c033dd1922a63c8393ab467e9aa58fa757e4 (diff)
downloaddecky-lsfg-vk-f8139896f2077a95a78a54c818637f78dd102de8.tar.gz
decky-lsfg-vk-f8139896f2077a95a78a54c818637f78dd102de8.zip
consolidate toml and script values
Diffstat (limited to 'src')
-rw-r--r--src/components/ConfigurationSection.tsx32
-rw-r--r--src/config/generatedConfigSchema.ts18
2 files changed, 50 insertions, 0 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 1c0d2b2..3f15bac 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -182,6 +182,38 @@ export function ConfigurationSection({
onChange={(value) => onConfigChange('disable_vkbasalt', value)}
/>
</PanelSectionRow>
+
+ <PanelSectionRow>
+ <ToggleField
+ label="Foobar Toggle (Test)"
+ description="Test script-only toggle that exports FOOBAR=1 (for testing purposes)"
+ checked={config.foobar_toggle}
+ onChange={(value) => onConfigChange('foobar_toggle', value)}
+ />
+ </PanelSectionRow>
+
+ <PanelSectionRow>
+ <div>
+ <div style={{ marginBottom: "8px", fontSize: "14px" }}>Test Config Only Field</div>
+ <input
+ type="text"
+ value={config.test_config_only}
+ onChange={(e) => onConfigChange('test_config_only', e.target.value)}
+ placeholder="Enter test value"
+ style={{
+ width: "100%",
+ padding: "8px",
+ borderRadius: "4px",
+ border: "1px solid #4c4c4c",
+ backgroundColor: "#2d2d2d",
+ color: "#ffffff"
+ }}
+ />
+ <div style={{ fontSize: "12px", color: "#999", marginTop: "4px" }}>
+ Test TOML-only configuration field (not in script)
+ </div>
+ </div>
+ </PanelSectionRow>
</>
);
}
diff --git a/src/config/generatedConfigSchema.ts b/src/config/generatedConfigSchema.ts
index cb08252..b7487bd 100644
--- a/src/config/generatedConfigSchema.ts
+++ b/src/config/generatedConfigSchema.ts
@@ -83,6 +83,18 @@ export const CONFIG_SCHEMA: Record<string, ConfigField> = {
default: false,
description: "Disables vkBasalt layer which can conflict with LSFG (Reshade, some Decky plugins)"
},
+ foobar_toggle: {
+ name: "foobar_toggle",
+ fieldType: ConfigFieldType.BOOLEAN,
+ default: false,
+ description: "Test script-only toggle that exports FOOBAR=1 (for testing purposes)"
+ },
+ test_config_only: {
+ name: "test_config_only",
+ fieldType: ConfigFieldType.STRING,
+ default: "default_value",
+ description: "Test TOML-only configuration field (not in script)"
+ },
};
// Type-safe configuration data structure
@@ -98,6 +110,8 @@ export interface ConfigurationData {
disable_steamdeck_mode: boolean;
mangohud_workaround: boolean;
disable_vkbasalt: boolean;
+ foobar_toggle: boolean;
+ test_config_only: string;
}
// Helper functions
@@ -118,6 +132,8 @@ export function getDefaults(): ConfigurationData {
disable_steamdeck_mode: false,
mangohud_workaround: false,
disable_vkbasalt: false,
+ foobar_toggle: false,
+ test_config_only: "default_value",
};
}
@@ -134,6 +150,8 @@ export function getFieldTypes(): Record<string, ConfigFieldType> {
disable_steamdeck_mode: ConfigFieldType.BOOLEAN,
mangohud_workaround: ConfigFieldType.BOOLEAN,
disable_vkbasalt: ConfigFieldType.BOOLEAN,
+ foobar_toggle: ConfigFieldType.BOOLEAN,
+ test_config_only: ConfigFieldType.STRING,
};
}