fix dark mode scheduling

This commit is contained in:
2026-03-26 14:14:40 +01:00
parent 408e535867
commit 6f28c40d68
+4 -2
View File
@@ -62,9 +62,11 @@ Singleton {
return; return;
var now = new Date(); var now = new Date();
if (now.getHours() >= root.darkStart || now.getHours() < root.darkEnd) { if (now.getHours() >= root.darkStart || now.getHours() < root.darkEnd) {
root.applyDarkMode(); if (DynamicColors.light)
root.applyDarkMode();
} else { } else {
root.applyLightMode(); if (!DynamicColors.light)
root.applyLightMode();
} }
} }
} }