From 9c656df0ac1d4a0a58d551f8ee8981dee0509a86 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 18 May 2026 01:05:33 -0400 Subject: [PATCH] Fix monitor brightness h/l doing nothing: id shadowing root property --- .../omarchy-shell/plugins/bar/widgets/monitorPanel.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default/quickshell/omarchy-shell/plugins/bar/widgets/monitorPanel.qml b/default/quickshell/omarchy-shell/plugins/bar/widgets/monitorPanel.qml index 1365c9e6..1dcccdfa 100644 --- a/default/quickshell/omarchy-shell/plugins/bar/widgets/monitorPanel.qml +++ b/default/quickshell/omarchy-shell/plugins/bar/widgets/monitorPanel.qml @@ -109,7 +109,7 @@ Item { function adjustBrightness(delta) { if (focusSection !== "brightness") return if (!brightnessAvailable) return - setBrightness(brightnessPercent + delta) + setBrightness(root.brightnessPercent + delta) } function activateCursor() { @@ -436,7 +436,7 @@ Item { PanelSlider { id: brightnessSlider bar: root.bar - width: parent.width - 22 - brightnessPercent.width - 16 + width: parent.width - 22 - brightnessLabel.width - 16 anchors.verticalCenter: parent.verticalCenter minimum: 1 maximum: 100 @@ -451,7 +451,7 @@ Item { } Text { - id: brightnessPercent + id: brightnessLabel text: Math.round(brightnessSlider.dragging ? brightnessSlider.liveValue : root.brightnessPercent) + "%" color: root.bar.foreground font.family: root.bar.fontFamily