From 0b0693b1fdd128b5fbc57b434305a626c42355be Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:11:33 +0100 Subject: [PATCH] hefty: bar: battery: checkmark when full, more natural order for vertical --- .../hefty/topLayer/bar/widgets/HResources.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HResources.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HResources.qml index 0399c530d..29d6d978e 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HResources.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HResources.qml @@ -104,6 +104,7 @@ HBarWidgetWithPopout { bottom: parent.bottom bottomMargin: (parent.height - height) / 2 } + rotation: 180 * root.vertical spacing: 0 W.MaterialSymbol { @@ -111,24 +112,26 @@ HBarWidgetWithPopout { Layout.alignment: Qt.AlignVCenter Layout.leftMargin: -2 Layout.rightMargin: -2 - rotation: 90 * root.vertical + rotation: -90 * root.vertical fill: 1 * (text == "bolt") fillAnimation: null text: { + if (batteryProgress.value == 1) + return "check"; if (root.chargingAndNotFull) return "bolt"; if (root.powerSaving) return "nest_eco_leaf"; - return "circle"; + return ""; } iconSize: C.Appearance.font.pixelSize.small font.weight: Font.DemiBold - visible: root.chargingAndNotFull || root.powerSaving + visible: text != "" } W.VisuallyCenteredStyledText { visible: batteryProgress.value < 1 Layout.fillHeight: true - rotation: 90 * root.vertical + rotation: -90 * root.vertical font: batteryProgress.font text: batteryProgress.text } @@ -164,6 +167,7 @@ HBarWidgetWithPopout { width: parent.width W.CircularProgress { + id: battCircProg implicitSize: 44 lineWidth: 3 value: S.Battery.percentage @@ -173,6 +177,8 @@ HBarWidgetWithPopout { fill: 1 animateChange: true text: { + if (battCircProg.value == 1) + return "check"; if (root.chargingAndNotFull) return "bolt"; if (root.powerSaving)