mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-25 05:52:50 -05:00
theme: unconditionally load dms-colors.json
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user