feat(video): add video enhancement settings for saturation, brightness, and contrast (#557)

This commit is contained in:
ariedel87
2025-06-04 18:44:37 +02:00
committed by GitHub
parent 52dd675e52
commit 9d2abd9fb0
3 changed files with 100 additions and 0 deletions

View File

@@ -319,6 +319,14 @@ interface SettingsState {
showPressedKeys: boolean;
setShowPressedKeys: (show: boolean) => void;
// Video enhancement settings
videoSaturation: number;
setVideoSaturation: (value: number) => void;
videoBrightness: number;
setVideoBrightness: (value: number) => void;
videoContrast: number;
setVideoContrast: (value: number) => void;
}
export const useSettingsStore = create(
@@ -362,6 +370,14 @@ export const useSettingsStore = create(
showPressedKeys: true,
setShowPressedKeys: show => set({ showPressedKeys: show }),
// Video enhancement settings with default values (1.0 = normal)
videoSaturation: 1.0,
setVideoSaturation: value => set({ videoSaturation: value }),
videoBrightness: 1.0,
setVideoBrightness: value => set({ videoBrightness: value }),
videoContrast: 1.0,
setVideoContrast: value => set({ videoContrast: value }),
}),
{
name: "settings",