refactor: make battery indicator more consistent
This commit is contained in:
parent
608854ba03
commit
984a840a8d
4 changed files with 12 additions and 9 deletions
|
|
@ -67,7 +67,7 @@ Item {
|
|||
name: "battery"
|
||||
source: "Battery.qml"
|
||||
color: UPower.displayDevice.isLaptopBattery &&
|
||||
UPower.onBattery && UPower.displayDevice.percentage < 0.15 ?
|
||||
UPower.onBattery && UPower.displayDevice.percentage < Config.services.batteryWarning + 0.01 ?
|
||||
Config.colors.batteryWarning :
|
||||
Config.colors.battery
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue