update settings schema

This commit is contained in:
kossLAN 2025-06-10 21:46:33 -04:00
parent b55f89a00d
commit 9aa51c86da
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
25 changed files with 342 additions and 103 deletions

View file

@ -5,7 +5,8 @@ import Quickshell
import Quickshell.Io
Singleton {
property alias settings: jsonAdapter
property alias settings: jsonAdapter.settings
property alias colors: jsonAdapter.colors
FileView {
path: `${Quickshell.env("XDG_DATA_HOME")}/quickshell/settings.json`
@ -16,9 +17,12 @@ Singleton {
JsonAdapter {
id: jsonAdapter
property int barHeight: 25
property string wallpaperUrl: Qt.resolvedUrl("root:resources/wallpapers/pixelart0.jpg")
property string colorScheme: "scheme-fruit-salad"
property QtObject settings: QtObject {
property int barHeight: 25
property string wallpaperUrl: Qt.resolvedUrl("root:resources/wallpapers/pixelart0.jpg")
property string colorScheme: "scheme-fruit-salad"
}
property var colors: {
"background": "#131313",