mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -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";
|
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,17 +1349,13 @@ 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user