From deaeac4dbdcdf64c8f15c37ca08199edd0a764ba Mon Sep 17 00:00:00 2001 From: zach Date: Tue, 30 Jun 2026 13:31:23 +0200 Subject: [PATCH] section headers for screenshot page + rename --- Modules/SettingsNew/PageCompRegistry.qml | 4 ++-- .../{Screenshot.qml => ScreenshotPage.qml} | 20 +++++++++++++------ .../{Wallpaper.qml => WallpaperPage.qml} | 0 3 files changed, 16 insertions(+), 8 deletions(-) rename Modules/SettingsNew/Pages/{Screenshot.qml => ScreenshotPage.qml} (88%) rename Modules/SettingsNew/Pages/{Wallpaper.qml => WallpaperPage.qml} (100%) diff --git a/Modules/SettingsNew/PageCompRegistry.qml b/Modules/SettingsNew/PageCompRegistry.qml index a74e153..c91229d 100644 --- a/Modules/SettingsNew/PageCompRegistry.qml +++ b/Modules/SettingsNew/PageCompRegistry.qml @@ -22,7 +22,7 @@ QtObject { // Wallpaper & style StackPage { Component { - Wallpaper { + WallpaperPage { } } @@ -36,7 +36,7 @@ QtObject { // Screenshot StackPage { Component { - Screenshot { + ScreenshotPage { } } } diff --git a/Modules/SettingsNew/Pages/Screenshot.qml b/Modules/SettingsNew/Pages/ScreenshotPage.qml similarity index 88% rename from Modules/SettingsNew/Pages/Screenshot.qml rename to Modules/SettingsNew/Pages/ScreenshotPage.qml index cbc9f42..74aa368 100644 --- a/Modules/SettingsNew/Pages/Screenshot.qml +++ b/Modules/SettingsNew/Pages/ScreenshotPage.qml @@ -17,9 +17,14 @@ PageBase { ColumnLayout { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top - spacing: Appearance.spacing.large + spacing: Appearance.spacing.extraSmall / 2 width: root.cappedWidth + SectionHeader { + first: true + text: qsTr("Effects") + } + ToggleRow { checked: Config.screenshot.enable_pp first: true @@ -29,7 +34,6 @@ PageBase { } SelectRow { - Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing active: Config.screenshot.mode === "manual" ? menuItems[0] : menuItems[1] enabled: Config.screenshot.enable_pp last: true @@ -55,6 +59,10 @@ PageBase { } } + SectionHeader { + text: qsTr("Rounded corners") + } + ToggleRow { checked: Config.screenshot.rounding enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" @@ -65,7 +73,6 @@ PageBase { } SpinRow { - Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.rounding from: 0 last: true @@ -80,6 +87,10 @@ PageBase { } } + SectionHeader { + text: qsTr("Shadow") + } + ToggleRow { checked: Config.screenshot.shadow enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" @@ -90,7 +101,6 @@ PageBase { } SpinRow { - Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow from: 0 stepSize: 1 @@ -105,7 +115,6 @@ PageBase { } SpinRow { - Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow from: -100 stepSize: 10 @@ -120,7 +129,6 @@ PageBase { } SpinRow { - Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow from: -100 last: true diff --git a/Modules/SettingsNew/Pages/Wallpaper.qml b/Modules/SettingsNew/Pages/WallpaperPage.qml similarity index 100% rename from Modules/SettingsNew/Pages/Wallpaper.qml rename to Modules/SettingsNew/Pages/WallpaperPage.qml