fix dark mode scheduling
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user