Fix Brightness step size

This commit is contained in:
Ly-sec 2025-08-17 13:06:15 +02:00
parent 8178e96d04
commit d66e92bafa

View file

@ -146,11 +146,13 @@ Singleton {
} }
function increaseBrightness(): void { function increaseBrightness(): void {
setBrightnessDebounced(brightness + 0.1) var stepSize = Settings.data.brightness.brightnessStep / 100.0
setBrightnessDebounced(brightness + stepSize)
} }
function decreaseBrightness(): void { function decreaseBrightness(): void {
setBrightnessDebounced(monitor.brightness - 0.1) var stepSize = Settings.data.brightness.brightnessStep / 100.0
setBrightnessDebounced(monitor.brightness - stepSize)
} }
function getStoredBrightness(): real { function getStoredBrightness(): real {