1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

theme: unconditionally load dms-colors.json

This commit is contained in:
bbedward
2026-01-02 22:01:04 -05:00
parent 77681fd387
commit 405749aa98

View File

@@ -1328,7 +1328,7 @@ Singleton {
const colorsPath = SessionData.isGreeterMode ? greetCfgDir + "/colors.json" : stateDir + "/dms-colors.json"; const colorsPath = SessionData.isGreeterMode ? greetCfgDir + "/colors.json" : stateDir + "/dms-colors.json";
return colorsPath; return colorsPath;
} }
watchChanges: currentTheme === dynamic && !SessionData.isGreeterMode watchChanges: !SessionData.isGreeterMode
function parseAndLoadColors() { function parseAndLoadColors() {
try { try {
@@ -1349,18 +1349,14 @@ Singleton {
} }
onLoaded: { onLoaded: {
if (currentTheme === dynamic) { if (currentTheme === dynamic)
console.info("Theme: Dynamic colors file loaded successfully");
colorsFileLoadFailed = false; colorsFileLoadFailed = false;
parseAndLoadColors(); parseAndLoadColors();
} }
}
onFileChanged: { onFileChanged: {
if (currentTheme === dynamic) {
dynamicColorsFileView.reload(); dynamicColorsFileView.reload();
} }
}
onLoadFailed: function (error) { onLoadFailed: function (error) {
if (currentTheme === dynamic) { if (currentTheme === dynamic) {