We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955a3bf commit 64cd4e9Copy full SHA for 64cd4e9
web/src/lib/managers/theme-manager.svelte.ts
@@ -2,6 +2,7 @@ import { browser } from '$app/environment';
2
import { Theme } from '$lib/constants';
3
import { eventManager } from '$lib/managers/event-manager.svelte';
4
import { PersistedLocalStorage } from '$lib/utils/persisted';
5
+import { theme as uiTheme, type Theme as UiTheme } from '@immich/ui';
6
7
export interface ThemeSetting {
8
value: Theme;
@@ -71,6 +72,8 @@ class ThemeManager {
71
72
73
this.#theme.current = theme;
74
75
+ uiTheme.value = theme.value as unknown as UiTheme;
76
+
77
eventManager.emit('ThemeChange', theme);
78
}
79
0 commit comments