mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
Update auto theme logic
This commit is contained in:
@@ -466,6 +466,11 @@ Singleton {
|
||||
console.error("Colors singleton not available");
|
||||
}
|
||||
} else if (themeIndex >= 0 && themeIndex < themes.length) {
|
||||
// If switching away from dynamic theme, restore system themes
|
||||
if (isDynamicTheme && typeof Colors !== "undefined") {
|
||||
console.log("Switching away from dynamic theme, restoring system themes");
|
||||
Colors.restoreSystemThemes();
|
||||
}
|
||||
currentThemeIndex = themeIndex;
|
||||
isDynamicTheme = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user