fix: theme switcher (#24209)

pull/24170/head
Jason Rasmussen 2025-11-26 16:17:26 +07:00 committed by GitHub
parent 955a3bfaa6
commit 64cd4e96e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

@ -2,6 +2,7 @@ import { browser } from '$app/environment';
import { Theme } from '$lib/constants';
import { eventManager } from '$lib/managers/event-manager.svelte';
import { PersistedLocalStorage } from '$lib/utils/persisted';
import { theme as uiTheme, type Theme as UiTheme } from '@immich/ui';
export interface ThemeSetting {
value: Theme;
@ -71,6 +72,8 @@ class ThemeManager {
this.#theme.current = theme;
uiTheme.value = theme.value as unknown as UiTheme;
eventManager.emit('ThemeChange', theme);
}
}