From ad0ba0fc61f83e2aaf22192e7d0ad05dde9ffd62 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 17 Jul 2025 14:53:18 -0400 Subject: fix descriptions and cleanup UI --- py_modules/lsfg_vk/config_schema.py | 8 ++++---- src/components/ConfigurationSection.tsx | 12 ++++++------ src/config/configSchema.ts | 14 +++----------- 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/py_modules/lsfg_vk/config_schema.py b/py_modules/lsfg_vk/config_schema.py index 8c5f58c..1604f5d 100644 --- a/py_modules/lsfg_vk/config_schema.py +++ b/py_modules/lsfg_vk/config_schema.py @@ -63,21 +63,21 @@ CONFIG_SCHEMA: Dict[str, ConfigField] = { name="flow_scale", field_type=ConfigFieldType.FLOAT, default=0.8, - description="change the flow scale (lower = faster)" + description="change the flow scale" ), "performance_mode": ConfigField( name="performance_mode", field_type=ConfigFieldType.BOOLEAN, default=True, - description="toggle performance mode (2x-8x performance increase)" + description="toggle performance mode" ), "hdr_mode": ConfigField( name="hdr_mode", field_type=ConfigFieldType.BOOLEAN, default=False, - description="enable hdr mode (doesn't support scrgb)" + description="enable hdr mode" ) } @@ -93,7 +93,7 @@ class ConfigurationData(TypedDict): class ConfigurationManager: - """Centralized configuration management for TOML-based config""" + """Centralized configuration management""" @staticmethod def get_defaults() -> ConfigurationData: diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index 118b418..a1c175a 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -30,25 +30,25 @@ export function ConfigurationSection({ onConfigChange('enable', value)} /> - + {/* onConfigChange('dll', e.target.value)} /> - + */} onConfigChange('performance_mode', value)} /> @@ -87,7 +87,7 @@ export function ConfigurationSection({ onConfigChange('hdr_mode', value)} /> diff --git a/src/config/configSchema.ts b/src/config/configSchema.ts index 83dc4aa..6dc8687 100644 --- a/src/config/configSchema.ts +++ b/src/config/configSchema.ts @@ -48,21 +48,21 @@ export const CONFIG_SCHEMA: Record = { name: "flow_scale", fieldType: ConfigFieldType.FLOAT, default: 0.8, - description: "change the flow scale (lower = faster)" + description: "change the flow scale" }, performance_mode: { name: "performance_mode", fieldType: ConfigFieldType.BOOLEAN, default: true, - description: "toggle performance mode (2x-8x performance increase)" + description: "toggle performance mode" }, hdr_mode: { name: "hdr_mode", fieldType: ConfigFieldType.BOOLEAN, default: false, - description: "enable hdr mode (doesn't support scrgb)" + description: "enable hdr in games that support it" } }; @@ -75,14 +75,6 @@ export interface ConfigurationData { performance_mode: boolean; hdr_mode: boolean; } - multiplier: number; - flow_scale: number; - hdr: boolean; - perf_mode: boolean; - immediate_mode: boolean; - disable_vkbasalt: boolean; - frame_cap: number; -} // Centralized configuration manager export class ConfigurationManager { -- cgit v1.2.3