Battery: fix pill when charging

This commit is contained in:
Ly-sec
2025-11-25 14:12:17 +01:00
parent 6a427b2cfc
commit 9cf44be361
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* @name midnight-noctalia
* @name noctalia-midnight
* @description a fork of midnight for noctalia-shell
* @author refact0r
* @version 2.1.1
+4 -4
View File
@@ -38,8 +38,8 @@ Item {
// Test mode
readonly property bool testMode: false
readonly property int testPercent: 25
readonly property bool testCharging: true
readonly property int testPercent: 35
readonly property bool testCharging: false
// Main properties
readonly property var battery: UPower.displayDevice
@@ -123,8 +123,8 @@ Item {
forceClose: displayMode === "alwaysHide" || !isReady || (!testMode && !battery.isLaptopBattery)
// Charging is the most important, then low battery
customBackgroundColor: charging ? Color.mOnPrimary : (isLowBattery ? Color.mError : Color.transparent)
customTextIconColor: charging ? Color.mPrimary : (isLowBattery ? Color.mOnError : Color.transparent)
customBackgroundColor: charging ? Color.mPrimary : (isLowBattery ? Color.mError : Color.transparent)
customTextIconColor: charging ? Color.mOnPrimary : (isLowBattery ? Color.mOnError : Color.transparent)
tooltipText: {
let lines = [];