refactor: make battery indicator more consistent

This commit is contained in:
Kiana Sheibani 2026-01-25 04:39:31 -05:00
parent 608854ba03
commit 984a840a8d
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 12 additions and 9 deletions

View file

@ -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
}