mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 10:37:50 +00:00
Brightness/VolumeWidget: fix visual issues (#875)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user