Fix Matugen, NPanel overlay and probably SWWW

This commit is contained in:
quadbyte 2025-08-15 06:49:24 -04:00
parent dd471581cd
commit 867444a29c
4 changed files with 22 additions and 7 deletions

View file

@ -97,8 +97,14 @@ Singleton {
id: customColorsFile
path: Settings.configDir + "colors.json"
watchChanges: true
onFileChanged: reload()
onAdapterUpdated: writeAdapter()
onFileChanged: {
console.log("[Colors] reloading colors file from disk")
reload()
}
onAdapterUpdated: {
console.log("[Colors] writing colors to disk, primary color:", mPrimary)
writeAdapter()
}
onLoadFailed: function (error) {
if (error.toString().includes("No such file") || error === 2) {
// File doesn't exist, create it with default values