Icons: Brightness and battery
This commit is contained in:
parent
404a1d3e8b
commit
ea6b8e0c02
18 changed files with 36 additions and 66 deletions
|
|
@ -46,8 +46,7 @@ Item {
|
|||
function getIcon() {
|
||||
var monitor = getMonitor()
|
||||
var brightness = monitor ? monitor.brightness : 0
|
||||
return brightness <= 0 ? "brightness_1" : brightness < 0.33 ? "brightness_low" : brightness
|
||||
< 0.66 ? "brightness_medium" : "brightness_high"
|
||||
return brightness <= 0.5 ? FontService.icons["brightness_low"] : FontService.icons["brightness_high"]
|
||||
}
|
||||
|
||||
// Connection used to open the pill when brightness changes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue