From 0fc18842816703c8b72cb7f024ea97060569096c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 22 Jul 2026 15:35:03 -0700 Subject: [PATCH] Show monitor hero top and hide brightness slider when no backlight --- shell/plugins/panels/monitor/Panel.qml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/shell/plugins/panels/monitor/Panel.qml b/shell/plugins/panels/monitor/Panel.qml index 2a972ad8..84117c86 100644 --- a/shell/plugins/panels/monitor/Panel.qml +++ b/shell/plugins/panels/monitor/Panel.qml @@ -484,7 +484,6 @@ Panel { // ---------- Hero: display icon ยท title/status ---------- Item { width: parent.width - visible: root.brightnessAvailable implicitHeight: Math.max(heroIcon.implicitHeight, heroLabels.implicitHeight) Text { @@ -517,7 +516,13 @@ Panel { Text { id: heroLabel - text: root.brightnessName(brightnessSlider.dragging ? brightnessSlider.liveValue : root.brightnessPercent).toUpperCase() + text: { + if (root.brightnessAvailable) { + return root.brightnessName(brightnessSlider.dragging ? brightnessSlider.liveValue : root.brightnessPercent).toUpperCase() + } + var count = root.enabledDisplayCount + return (count === 1 ? "1 display" : count + " displays").toUpperCase() + } color: Qt.darker(root.bar.foreground, 1.4) font.family: root.bar.fontFamily font.pixelSize: Style.font.caption @@ -603,14 +608,6 @@ Panel { } } - Text { - visible: !root.brightnessAvailable - text: "No controllable backlight found" - color: Qt.darker(root.bar.foreground, 1.5) - font.family: root.bar.fontFamily - font.pixelSize: Style.font.bodySmall - } - // ---------- Text size ---------- PanelSeparator { foreground: root.bar.foreground