diff --git a/src/web/waiters/OptionsWaiter.mjs b/src/web/waiters/OptionsWaiter.mjs index a5d04572..dcb0a5f4 100644 --- a/src/web/waiters/OptionsWaiter.mjs +++ b/src/web/waiters/OptionsWaiter.mjs @@ -175,7 +175,11 @@ class OptionsWaiter { * Applies the user's preferred color scheme using the `prefers-color-scheme` media query. */ applyPreferredColorScheme() { - const theme = this.getPreferredColorScheme(); + const themeFromStorage = this.app?.options?.theme; + let theme = themeFromStorage; + if (!theme) { + theme = this.getPreferredColorScheme(); + } this.changeTheme(theme); }