OSD: fix 0% brightness icon

This commit is contained in:
Ly-sec
2025-11-26 14:54:38 +01:00
parent a44137f81f
commit c0b836af26
+3
View File
@@ -56,6 +56,9 @@ Variants {
case OSD.Type.InputVolume:
return isInputMuted ? "microphone-off" : "microphone";
case OSD.Type.Brightness:
// Show sun-off icon when brightness is effectively 0% (within rounding threshold)
if (currentBrightness < 0.005)
return "sun-off";
return currentBrightness <= 0.5 ? "brightness-low" : "brightness-high";
case OSD.Type.LockKey:
return "keyboard";