From 9cf44be361d60351f67fce50b0668b69db738821 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Tue, 25 Nov 2025 14:12:17 +0100 Subject: [PATCH] Battery: fix pill when charging --- Assets/MatugenTemplates/vesktop.css | 2 +- Modules/Bar/Widgets/Battery.qml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/MatugenTemplates/vesktop.css b/Assets/MatugenTemplates/vesktop.css index 2ef939a2..e004f3cc 100644 --- a/Assets/MatugenTemplates/vesktop.css +++ b/Assets/MatugenTemplates/vesktop.css @@ -1,5 +1,5 @@ /** -* @name midnight-noctalia +* @name noctalia-midnight * @description a fork of midnight for noctalia-shell * @author refact0r * @version 2.1.1 diff --git a/Modules/Bar/Widgets/Battery.qml b/Modules/Bar/Widgets/Battery.qml index 8be66f57..e88432a4 100644 --- a/Modules/Bar/Widgets/Battery.qml +++ b/Modules/Bar/Widgets/Battery.qml @@ -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 = [];