From f5ea891dd70f1d7853f477211bb0c9cd0890998f Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 19 Jun 2025 08:19:33 +0200 Subject: [PATCH] settings: add fake screen rounding option --- .../{General.qml => BehaviorConfig.qml} | 0 .../quickshell/modules/settings/Services.qml | 13 ------ .config/quickshell/modules/settings/Style.qml | 43 +++++++++++++++++++ .config/quickshell/settings.qml | 9 +--- 4 files changed, 45 insertions(+), 20 deletions(-) rename .config/quickshell/modules/settings/{General.qml => BehaviorConfig.qml} (100%) delete mode 100644 .config/quickshell/modules/settings/Services.qml diff --git a/.config/quickshell/modules/settings/General.qml b/.config/quickshell/modules/settings/BehaviorConfig.qml similarity index 100% rename from .config/quickshell/modules/settings/General.qml rename to .config/quickshell/modules/settings/BehaviorConfig.qml diff --git a/.config/quickshell/modules/settings/Services.qml b/.config/quickshell/modules/settings/Services.qml deleted file mode 100644 index d7d8184f1..000000000 --- a/.config/quickshell/modules/settings/Services.qml +++ /dev/null @@ -1,13 +0,0 @@ -import QtQuick -import QtQuick.Controls -import QtQuick.Layouts -import "root:/services/" -import "root:/modules/common/" -import "root:/modules/common/widgets/" - -ContentPage { - StyledText { - text: qsTr("Services page") - font.pixelSize: Appearance.font.pixelSize.larger - } -} \ No newline at end of file diff --git a/.config/quickshell/modules/settings/Style.qml b/.config/quickshell/modules/settings/Style.qml index 3b9071cab..8041f15cb 100644 --- a/.config/quickshell/modules/settings/Style.qml +++ b/.config/quickshell/modules/settings/Style.qml @@ -96,5 +96,48 @@ ContentPage { font.pixelSize: Appearance.font.pixelSize.smaller color: Appearance.colors.colSubtext } + + } + + ContentSection { + title: "Shell style" + + ColumnLayout { // Fake screen rounding + StyledText { + text: "Fake screen rounding" + color: Appearance.colors.colSubtext + } + ButtonGroup { + id: fakeScreenRoundingButtonGroup + property int selectedPolicy: ConfigOptions.appearance.fakeScreenRounding + spacing: 2 + SelectionGroupButton { + property int value: 0 + leftmost: true + buttonText: "No" + toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value) + onClicked: { + ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value); + } + } + SelectionGroupButton { + property int value: 1 + buttonText: "Yes" + toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value) + onClicked: { + ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value); + } + } + SelectionGroupButton { + property int value: 2 + rightmost: true + buttonText: "When not fullscreen" + toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value) + onClicked: { + ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value); + } + } + } + } } } \ No newline at end of file diff --git a/.config/quickshell/settings.qml b/.config/quickshell/settings.qml index e5cf1c310..f5a4b5838 100644 --- a/.config/quickshell/settings.qml +++ b/.config/quickshell/settings.qml @@ -27,20 +27,15 @@ ApplicationWindow { property real contentPadding: 8 property bool showNextTime: false property var pages: [ - { - name: "General", - icon: "tune", - component: "modules/settings/General.qml" - }, { name: "Style", icon: "palette", component: "modules/settings/Style.qml" }, { - name: "Services", + name: "Behavior", icon: "settings", - component: "modules/settings/Services.qml" + component: "modules/settings/BehaviorConfig.qml" }, { name: "About",