fix: dropdown theme colors

This commit is contained in:
rasmusq
2025-12-19 23:13:03 +01:00
parent de19fb27fb
commit a68e8f9295
8 changed files with 171 additions and 106 deletions
@@ -80,8 +80,8 @@
</div>
<div class="flex items-center gap-1 sm:gap-2 flex-shrink-0">
<ColorPicker bind:color={localColor} onchange={handleColorChange} size="sm" />
<ThemePicker value={dashboardTheme} onValueChange={handleThemeChange} />
<LanguageToggle />
<ThemePicker value={dashboardTheme} onValueChange={handleThemeChange} color={localColor} />
<LanguageToggle color={localColor} />
<ThemeToggle />
{#if isAuthenticated}
<Button variant="outline" onclick={() => signOut({ callbackUrl: '/' })}>{t.auth.signOut}</Button>
+4 -2
View File
@@ -7,10 +7,12 @@
let {
isAuthenticated = false,
showDashboardLink = false
showDashboardLink = false,
color = null
}: {
isAuthenticated?: boolean;
showDashboardLink?: boolean;
color?: string | null;
} = $props();
const t = $derived(languageStore.t);
@@ -28,7 +30,7 @@
</Button>
{/if}
<div class="ml-auto flex items-center gap-1 sm:gap-2">
<LanguageToggle />
<LanguageToggle {color} />
<ThemeToggle />
</div>
</nav>