We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b72484 + 0e7b1f7 commit 848660fCopy full SHA for 848660f
src/web/waiters/OptionsWaiter.mjs
@@ -175,7 +175,11 @@ class OptionsWaiter {
175
* Applies the user's preferred color scheme using the `prefers-color-scheme` media query.
176
*/
177
applyPreferredColorScheme() {
178
- const theme = this.getPreferredColorScheme();
+ const themeFromStorage = this.app?.options?.theme;
179
+ let theme = themeFromStorage;
180
+ if (!theme) {
181
+ theme = this.getPreferredColorScheme();
182
+ }
183
this.changeTheme(theme);
184
}
185
0 commit comments