This commit is contained in:
vcoppe
2025-06-21 21:07:36 +02:00
parent f0230d4634
commit 1cc07901f6
803 changed files with 7937 additions and 6329 deletions

View File

@@ -1,19 +1,20 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import { Moon, Sun } from 'lucide-svelte';
import { Moon, Sun } from '@lucide/svelte';
import { mode, setMode } from 'mode-watcher';
import { _ } from '$lib/i18n';
import { i18n } from '$lib/i18n.svelte';
export let size = '20';
</script>
<Button
variant="ghost"
size="icon"
class="h-8 px-1.5 {$$props.class ?? ''}"
on:click={() => {
onclick={() => {
setMode(mode.current === 'light' ? 'dark' : 'light');
}}
aria-label={$_('menu.mode')}
aria-label={i18n._('menu.mode')}
>
{#if mode.current === 'light'}
<Sun {size} />