Brightness/VolumeWidget: fix visual issues (#875)

This commit is contained in:
Ly-sec
2025-11-26 12:40:18 +01:00
parent 737bde0a6a
commit 3ef5e169e4
4 changed files with 19 additions and 6 deletions
+2
View File
@@ -47,6 +47,8 @@ Item {
function getIcon() {
var monitor = getMonitor();
var brightness = monitor ? monitor.brightness : 0;
if (brightness <= 0.001)
return "sun-off";
return brightness <= 0.5 ? "brightness-low" : "brightness-high";
}