1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -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";
return colorsPath;
}
watchChanges: currentTheme === dynamic && !SessionData.isGreeterMode
watchChanges: !SessionData.isGreeterMode
function parseAndLoadColors() {
try {
@@ -1349,17 +1349,13 @@ Singleton {
}
onLoaded: {
if (currentTheme === dynamic) {
console.info("Theme: Dynamic colors file loaded successfully");
if (currentTheme === dynamic)
colorsFileLoadFailed = false;
parseAndLoadColors();
}
parseAndLoadColors();
}
onFileChanged: {
if (currentTheme === dynamic) {
dynamicColorsFileView.reload();
}
dynamicColorsFileView.reload();
}
onLoadFailed: function (error) {