add center title config option

This commit is contained in:
end-4
2025-06-21 01:03:56 +02:00
parent 3d9a5a72b6
commit 47c9d63210
4 changed files with 32 additions and 8 deletions
@@ -154,6 +154,7 @@ Singleton {
property QtObject windows: QtObject {
property bool showTitlebar: true // Client-side decoration for shell apps
property bool centerTitle: true
}
property QtObject hacks: QtObject {
+19 -6
View File
@@ -212,13 +212,26 @@ ContentPage {
ContentSection {
title: "Shell windows"
spacing: 4
ConfigSwitch {
text: "Title bar"
checked: ConfigOptions.windows.showTitlebar
onClicked: checked = !checked;
onCheckedChanged: {
ConfigLoader.setConfigValueAndSave("windows.showTitlebar", checked);
RowLayout {
spacing: 10
uniformCellSizes: true
ConfigSwitch {
text: "Title bar"
checked: ConfigOptions.windows.showTitlebar
onClicked: checked = !checked;
onCheckedChanged: {
ConfigLoader.setConfigValueAndSave("windows.showTitlebar", checked);
}
}
ConfigSwitch {
text: "Center title"
checked: ConfigOptions.windows.centerTitle
onClicked: checked = !checked;
onCheckedChanged: {
ConfigLoader.setConfigValueAndSave("windows.centerTitle", checked);
}
}
}
}