From 979bb46a8b11ea8d41aaa3ebf5a4f70742da66f0 Mon Sep 17 00:00:00 2001 From: purian23 Date: Sat, 12 Jul 2025 21:44:28 -0400 Subject: [PATCH] Remove duplicate transparency & theme options from the control center display --- Widgets/ControlCenter/DisplayTab.qml | 62 ---------------------------- Widgets/SettingsPopup.qml | 2 +- 2 files changed, 1 insertion(+), 63 deletions(-) diff --git a/Widgets/ControlCenter/DisplayTab.qml b/Widgets/ControlCenter/DisplayTab.qml index d2589cae..71b3f252 100644 --- a/Widgets/ControlCenter/DisplayTab.qml +++ b/Widgets/ControlCenter/DisplayTab.qml @@ -162,68 +162,6 @@ ScrollView { } } } - - // Top Bar Transparency Control - Column { - width: parent.width - spacing: Theme.spacingM - anchors.margins: Theme.spacingM - - Text { - text: "Top Bar Transparency" - font.pixelSize: Theme.fontSizeMedium - color: Theme.surfaceText - font.weight: Font.Medium - } - - CustomSlider { - width: parent.width - (Theme.spacingM * 2) - anchors.horizontalCenter: parent.horizontalCenter - value: Math.round(Prefs.topBarTransparency * 100) - minimum: 0 - maximum: 100 - leftIcon: "opacity" - rightIcon: "circle" - unit: "%" - showValue: true - - onSliderValueChanged: (newValue) => { - let transparencyValue = newValue / 100.0 - // Update live preview - } - - onSliderDragFinished: (finalValue) => { - let transparencyValue = finalValue / 100.0 - Prefs.setTopBarTransparency(transparencyValue) - } - } - - Text { - text: "Adjust the transparency of the top bar background" - font.pixelSize: Theme.fontSizeSmall - color: Theme.surfaceVariantText - wrapMode: Text.WordWrap - width: parent.width - (Theme.spacingM * 2) - anchors.horizontalCenter: parent.horizontalCenter - } - } - - // Theme Picker - Column { - width: parent.width - spacing: Theme.spacingS - - Text { - text: "Theme Color" - font.pixelSize: Theme.fontSizeMedium - color: Theme.surfaceText - font.weight: Font.Medium - } - - ThemePicker { - anchors.horizontalCenter: parent.horizontalCenter - } - } } } diff --git a/Widgets/SettingsPopup.qml b/Widgets/SettingsPopup.qml index af60ba8e..235c2799 100644 --- a/Widgets/SettingsPopup.qml +++ b/Widgets/SettingsPopup.qml @@ -98,7 +98,7 @@ PanelWindow { } Item { - width: parent.width - 200 // Spacer to push close button to the right + width: parent.width - 175 // Spacer to push close button to the right height: 1 }