WIP: Settings revamp #128

Manually merged
AramJonghu merged 21 commits from feat/settings-revamp into main 2026-06-30 15:29:50 +02:00
3 changed files with 16 additions and 8 deletions
Showing only changes of commit deaeac4dbd - Show all commits
+2 -2
View File
@@ -22,7 +22,7 @@ QtObject {
// Wallpaper & style // Wallpaper & style
StackPage { StackPage {
Component { Component {
Wallpaper { WallpaperPage {
} }
} }
@@ -36,7 +36,7 @@ QtObject {
// Screenshot // Screenshot
StackPage { StackPage {
Component { Component {
Screenshot { ScreenshotPage {
} }
} }
} }
@@ -17,9 +17,14 @@ PageBase {
ColumnLayout { ColumnLayout {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top anchors.top: parent.top
spacing: Appearance.spacing.large spacing: Appearance.spacing.extraSmall / 2
width: root.cappedWidth width: root.cappedWidth
SectionHeader {
first: true
text: qsTr("Effects")
}
ToggleRow { ToggleRow {
checked: Config.screenshot.enable_pp checked: Config.screenshot.enable_pp
first: true first: true
@@ -29,7 +34,6 @@ PageBase {
} }
SelectRow { SelectRow {
Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing
active: Config.screenshot.mode === "manual" ? menuItems[0] : menuItems[1] active: Config.screenshot.mode === "manual" ? menuItems[0] : menuItems[1]
enabled: Config.screenshot.enable_pp enabled: Config.screenshot.enable_pp
last: true last: true
@@ -55,6 +59,10 @@ PageBase {
} }
} }
SectionHeader {
text: qsTr("Rounded corners")
}
ToggleRow { ToggleRow {
checked: Config.screenshot.rounding checked: Config.screenshot.rounding
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual"
@@ -65,7 +73,6 @@ PageBase {
} }
SpinRow { SpinRow {
Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.rounding enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.rounding
from: 0 from: 0
last: true last: true
@@ -80,6 +87,10 @@ PageBase {
} }
} }
SectionHeader {
text: qsTr("Shadow")
}
ToggleRow { ToggleRow {
checked: Config.screenshot.shadow checked: Config.screenshot.shadow
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual"
@@ -90,7 +101,6 @@ PageBase {
} }
SpinRow { SpinRow {
Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow
from: 0 from: 0
stepSize: 1 stepSize: 1
@@ -105,7 +115,6 @@ PageBase {
} }
SpinRow { SpinRow {
Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow
from: -100 from: -100
stepSize: 10 stepSize: 10
@@ -120,7 +129,6 @@ PageBase {
} }
SpinRow { SpinRow {
Layout.topMargin: Appearance.spacing.extraSmall / 2 - parent.spacing
enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow enabled: Config.screenshot.enable_pp && Config.screenshot.mode === "manual" && Config.screenshot.shadow
from: -100 from: -100
last: true last: true