From 629b4c5fd798c92a4bb1322e3791cd9b34336d01 Mon Sep 17 00:00:00 2001 From: quadbyte Date: Sun, 17 Aug 2025 00:21:57 -0400 Subject: [PATCH] Removed Brightness slider from the DemoPanel, to avoid maintaining to much fragile code. --- Modules/{Demo => DemoPanel}/DemoPanel.qml | 56 ----------------------- shell.qml | 2 +- 2 files changed, 1 insertion(+), 57 deletions(-) rename Modules/{Demo => DemoPanel}/DemoPanel.qml (81%) diff --git a/Modules/Demo/DemoPanel.qml b/Modules/DemoPanel/DemoPanel.qml similarity index 81% rename from Modules/Demo/DemoPanel.qml rename to Modules/DemoPanel/DemoPanel.qml index be28857..f05e380 100644 --- a/Modules/Demo/DemoPanel.qml +++ b/Modules/DemoPanel/DemoPanel.qml @@ -302,62 +302,6 @@ NLoader { Layout.fillWidth: true } } - - // Brightness Control - ColumnLayout { - spacing: Style.marginMedium * scaling - NText { - text: "Brightness Control" - color: Color.mSecondary - font.weight: Style.fontWeightBold - } - - NText { - text: `Brightness: ${Math.round(BrightnessService.brightness)}%` - Layout.alignment: Qt.AlignVCenter - } - - RowLayout { - spacing: Style.marginSmall * scaling - NIconButton { - icon: "brightness_low" - tooltipText: "Decrease Brightness" - fontPointSize: Style.fontSizeLarge * scaling - onClicked: { - BrightnessService.decreaseBrightness() - } - } - NSlider { - from: 0 - to: 100 - stepSize: 1 - value: BrightnessService.brightness - implicitWidth: bgRect.width * 0.5 - onMoved: { - BrightnessService.setBrightnessDebounced(value) - } - } - NIconButton { - icon: "brightness_high" - tooltipText: "Increase Brightness" - fontPointSize: Style.fontSizeLarge * scaling - onClicked: { - BrightnessService.increaseBrightness() - } - } - } - - NText { - text: `Method: ${BrightnessService.currentMethod} | Available: ${BrightnessService.available}` - color: Color.mOnSurfaceVariant - font.pointSize: Style.fontSizeSmall * scaling - Layout.alignment: Qt.AlignHCenter - } - - NDivider { - Layout.fillWidth: true - } - } } } } diff --git a/shell.qml b/shell.qml index 5134397..6415d86 100644 --- a/shell.qml +++ b/shell.qml @@ -9,7 +9,7 @@ import qs.Modules.AppLauncher import qs.Modules.Background import qs.Modules.Bar import qs.Modules.Calendar -import qs.Modules.Demo +import qs.Modules.DemoPanel import qs.Modules.Dock import qs.Modules.IPC import qs.Modules.LockScreen