From bc1b82489110a01a32b2f8badc65853f9a4d207d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 18 May 2026 22:47:06 +0200 Subject: [PATCH] More tweaks --- shell/plugins/bar/widgets/bluetoothPanel.qml | 4 ++-- shell/plugins/bar/widgets/powerPanel.qml | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/shell/plugins/bar/widgets/bluetoothPanel.qml b/shell/plugins/bar/widgets/bluetoothPanel.qml index a5e10c6c..d276cdc6 100644 --- a/shell/plugins/bar/widgets/bluetoothPanel.qml +++ b/shell/plugins/bar/widgets/bluetoothPanel.qml @@ -601,8 +601,8 @@ Item { if (dev.batteryAvailable) return "Connected · " + Math.round(dev.battery * 100) + "%" return "Connected" } - if (isDiscovered) return "Available · click to pair" - return "Paired" + if (isDiscovered) return "" + return "" } readonly property color statusColor: { diff --git a/shell/plugins/bar/widgets/powerPanel.qml b/shell/plugins/bar/widgets/powerPanel.qml index 0f4bbbae..c28a7287 100644 --- a/shell/plugins/bar/widgets/powerPanel.qml +++ b/shell/plugins/bar/widgets/powerPanel.qml @@ -46,6 +46,11 @@ Item { } } + readonly property bool fullyCharged: { + var device = UPower.displayDevice + return device && device.isPresent && device.state === UPowerDeviceState.FullyCharged + } + function refresh() { if (!batteryProc.running) batteryProc.running = true if (!profilesProc.running) profilesProc.running = true @@ -193,7 +198,7 @@ printf 'time\t%s\n' "$($OMARCHY_PATH/bin/omarchy-battery-remaining-time 2>/dev/n } Row { - visible: root.batteryInfo.percentage !== undefined + visible: root.batteryInfo.percentage !== undefined && !root.fullyCharged anchors.horizontalCenter: parent.horizontalCenter spacing: 24 @@ -212,12 +217,20 @@ printf 'time\t%s\n' "$($OMARCHY_PATH/bin/omarchy-battery-remaining-time 2>/dev/n } } - PanelSeparator { foreground: root.bar.foreground } + PanelSeparator { + visible: !root.fullyCharged + foreground: root.bar.foreground + } Column { width: parent.width spacing: 12 - PanelSectionHeader { text: "POWER PROFILE"; foreground: root.bar.foreground; fontFamily: root.bar.fontFamily } + PanelSectionHeader { + visible: !root.fullyCharged + text: "POWER PROFILE" + foreground: root.bar.foreground + fontFamily: root.bar.fontFamily + } Row { width: parent.width spacing: 6