From f5f42437268f2bbee4d5a98c54366095914facb3 Mon Sep 17 00:00:00 2001 From: Captain Efficiency Date: Sun, 28 Jun 2026 08:52:02 -0400 Subject: [PATCH] fix(theme): use template one-click toggle instead of dropdown select Replace the Light/Dark/System DropdownMenu theme picker with the ergo-basics template's direct Sun/Moon toggle (mode-watcher `toggleMode`): one click flips the theme, icons cross-fade. Matches the reputation-system app's theme control. Component interface is unchanged (``, no props). Co-Authored-By: Claude Opus 4.8 --- src/routes/Theme.svelte | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/routes/Theme.svelte b/src/routes/Theme.svelte index d6407ed..59c5f4f 100644 --- a/src/routes/Theme.svelte +++ b/src/routes/Theme.svelte @@ -2,14 +2,13 @@ import Sun from "lucide-svelte/icons/sun"; import Moon from "lucide-svelte/icons/moon"; - import { resetMode, setMode } from "mode-watcher"; - import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js"; + import { toggleMode } from "mode-watcher"; import { Button } from "$lib/components/ui/button/index.js"; - - - - - - setMode("light")}>Light - setMode("dark")}>Dark - resetMode()}>System - - +