1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

battery: hide secondary text on no battery

This commit is contained in:
bbedward
2025-10-23 12:24:20 -04:00
parent a9744a0cad
commit 2a744fb174

View File

@@ -235,7 +235,7 @@ DankPopout {
} }
StyledText { StyledText {
text: BatteryService.batteryAvailable ? BatteryService.batteryStatus : "Management" text: BatteryService.batteryStatus
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
color: { color: {
if (BatteryService.isLowBattery && !BatteryService.isCharging) { if (BatteryService.isLowBattery && !BatteryService.isCharging) {
@@ -247,6 +247,7 @@ DankPopout {
return Theme.surfaceText; return Theme.surfaceText;
} }
font.weight: Font.Medium font.weight: Font.Medium
visible: BatteryService.batteryAvailable
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
} }