forked from btclock/webui
Add color mode switcher
This commit is contained in:
parent
de99a221d6
commit
51cce2ee9f
3 changed files with 56 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
import { page } from '$app/stores';
|
||||
import { locale, locales, isLoading } from 'svelte-i18n';
|
||||
import ColorSchemeSwitcher from '../components/ColorSchemeSwitcher.svelte';
|
||||
|
||||
export const setLocale = (lang: string) => () => {
|
||||
locale.set(lang);
|
||||
|
@ -88,6 +89,7 @@
|
|||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
<ColorSchemeSwitcher></ColorSchemeSwitcher>
|
||||
</Collapse>
|
||||
</Navbar>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue