feat: settings is now json, refactor panels to be able to dismiss by clicking outside

This commit is contained in:
ferreo 2025-07-18 15:43:22 +01:00
parent 8a3d610d22
commit a498671ef1
36 changed files with 1282 additions and 1300 deletions

View file

@ -3,6 +3,7 @@ pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
import qs.Settings
Singleton {
id: root
@ -14,11 +15,16 @@ Singleton {
// FileView to load theme data from JSON file
FileView {
id: themeFile
path: Quickshell.configDir + "/Settings/Theme.json"
path: Settings.settingsDir + "Theme.json"
watchChanges: true
onFileChanged: reload()
onAdapterUpdated: writeAdapter()
onLoadFailed: function(error) {
if (error.includes("No such file")) {
themeData = {}
writeAdapter()
}
}
JsonAdapter {
id: themeData