1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-06 05:28:29 -04:00

qs: large sweep of dead code removals

This commit is contained in:
bbedward
2026-07-26 23:22:22 -04:00
parent bab2078dfd
commit c67b185076
113 changed files with 1467 additions and 3254 deletions
+8 -7
View File
@@ -132,13 +132,6 @@ Singleton {
}
}
function setLightMode(isLightMode) {
if (typeof SettingsData !== "undefined" && SettingsData.syncModeWithPortal === false) {
return;
}
setSystemColorScheme(isLightMode);
}
function setSystemColorScheme(isLightMode) {
if (typeof SettingsData !== "undefined" && SettingsData.syncModeWithPortal === false) {
return;
@@ -211,6 +204,14 @@ Singleton {
colorSchemeDetector.running = true;
}
Connections {
target: Theme
function onIsLightModeChanged() {
root.setSystemColorScheme(Theme.isLightMode);
}
}
Connections {
target: typeof SettingsData !== "undefined" ? SettingsData : null