settings: add fake screen rounding option

This commit is contained in:
end-4
2025-06-19 08:19:33 +02:00
parent 1814f7cbec
commit f5ea891dd7
4 changed files with 45 additions and 20 deletions
@@ -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
}
}
@@ -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);
}
}
}
}
}
}
+2 -7
View File
@@ -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",