start working version of new theme handler

This commit is contained in:
Jesse Winton
2025-04-04 13:22:10 -04:00
parent bbc73067f5
commit dcf6c1f693
6 changed files with 46 additions and 42 deletions

View File

@@ -1,8 +1,7 @@
<script lang="ts">
import Select, { type SelectOption } from './Select.svelte';
import { Select as Select2 } from '$lib/components/ui';
import { themeStore, setTheme, type Theme } from '$lib/providers/theme';
import { get } from 'svelte/store';
import { themeStore, setTheme } from '$lib/providers/theme';
const options = [
{
@@ -28,6 +27,6 @@
{options}
bind:value={$themeStore.theme}
onValueChange={(e) => {
setTheme(e as Theme);
setTheme(e);
}}
/>