Battery: BarIcon color changes when charging + Panel refinment (conditional PPD and some alignment)

This commit is contained in:
ItsLemmy
2025-11-23 00:00:34 -05:00
parent 0fe84273df
commit 4d13cfeedb
2 changed files with 69 additions and 62 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ Item {
forceOpen: isReady && (testMode || battery.isLaptopBattery) && displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide" || !isReady || (!testMode && !battery.isLaptopBattery)
customBackgroundColor: isLowBattery ? Color.mError : Qt.rgba(0, 0, 0, 0)
customTextIconColor: isLowBattery ? Color.mOnError : Qt.rgba(0, 0, 0, 0)
customTextIconColor: isLowBattery ? Color.mOnError : charging ? Color.mPrimary : Qt.rgba(0, 0, 0, 0)
tooltipText: {
let lines = [];
if (testMode) {