diff --git a/apps/picture/apps/web/src/routes/app/+layout.svelte b/apps/picture/apps/web/src/routes/app/+layout.svelte
index cc5a7b165..dfb6cc830 100644
--- a/apps/picture/apps/web/src/routes/app/+layout.svelte
+++ b/apps/picture/apps/web/src/routes/app/+layout.svelte
@@ -46,6 +46,10 @@
theme.toggleMode();
}
+ function handleThemeModeChange(mode: 'light' | 'dark' | 'system') {
+ theme.setMode(mode);
+ }
+
// Client-side auth check
$effect(() => {
if (authStore.initialized && !authStore.loading && !authStore.user) {
@@ -203,6 +207,8 @@
showThemeVariants={true}
{themeVariantItems}
{currentThemeVariantLabel}
+ themeMode={theme.mode}
+ onThemeModeChange={handleThemeModeChange}
showLanguageSwitcher={false}
primaryColor="#3b82f6"
/>
diff --git a/apps/presi/apps/web/src/routes/+layout.svelte b/apps/presi/apps/web/src/routes/+layout.svelte
index 9f1387c49..d7c24dd04 100644
--- a/apps/presi/apps/web/src/routes/+layout.svelte
+++ b/apps/presi/apps/web/src/routes/+layout.svelte
@@ -78,6 +78,10 @@
theme.toggleMode();
}
+ function handleThemeModeChange(mode: 'light' | 'dark' | 'system') {
+ theme.setMode(mode);
+ }
+
function handleLogout() {
auth.logout();
goto('/login');
@@ -167,6 +171,8 @@
showThemeVariants={true}
{themeVariantItems}
{currentThemeVariantLabel}
+ themeMode={theme.mode}
+ onThemeModeChange={handleThemeModeChange}
showLanguageSwitcher={false}
showLogout={true}
onLogout={handleLogout}
diff --git a/apps/zitare/apps/web/src/routes/+layout.svelte b/apps/zitare/apps/web/src/routes/+layout.svelte
index cbbf639fb..6117ce893 100644
--- a/apps/zitare/apps/web/src/routes/+layout.svelte
+++ b/apps/zitare/apps/web/src/routes/+layout.svelte
@@ -107,6 +107,10 @@
theme.toggleMode();
}
+ function handleThemeModeChange(mode: 'light' | 'dark' | 'system') {
+ theme.setMode(mode);
+ }
+
async function handleLogout() {
await authStore.signOut();
goto('/login');
@@ -169,6 +173,8 @@
showThemeVariants={true}
{themeVariantItems}
{currentThemeVariantLabel}
+ themeMode={theme.mode}
+ onThemeModeChange={handleThemeModeChange}
showLanguageSwitcher={false}
showLogout={authStore.isAuthenticated}
onLogout={handleLogout}