Settings window #20

Merged
Zacharias-Brohn merged 83 commits from settingsWindow into main 2026-03-06 23:27:24 +01:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 40cd984b6d - Show all commits
+2 -1
View File
@@ -37,7 +37,8 @@ CustomRect {
SettingSwitch {
name: "wallust"
setting: Config.general.color.wallust
object: Config.general.color
setting: "wallust"
}
}
}
+4 -3
View File
@@ -10,7 +10,8 @@ import qs.Helpers
RowLayout {
id: root
required property bool setting
required property var object
required property string setting
required property string name
Layout.preferredHeight: 42
@@ -30,9 +31,9 @@ RowLayout {
Layout.alignment: Qt.AlignRight
checked: root.setting
checked: root.object[root.setting]
onToggled: {
root.setting = checked;
root.object[root.setting] = checked;
Config.save();
}
}