battery style changes

This commit is contained in:
lucy 2025-12-31 11:15:59 +01:00
parent 734c41f6f2
commit b4e7d9c42a

View File

@ -34,11 +34,13 @@ Rectangle {
} }
Text { Text {
id: botText id: botText
font.weight: 900 property var timeToEmpty: UPower.displayDevice.timeToEmpty / 60 / 60
font.weight: 600
font.family: Settings.font font.family: Settings.font
font.pixelSize: Settings.fontSize font.pixelSize: Settings.fontSize - 2
opacity: 0.7
color: Colors.foreground color: Colors.foreground
text: UPower.displayDevice.nativePath text: timeToEmpty.toFixed(1) + "h left"
} }
} }
} }