feat(theme): add system theme support

close #13
This commit is contained in:
Elysia
2026-02-13 14:49:41 +08:00
parent 1d808b035a
commit 7aeb3d5dd4
4 changed files with 87 additions and 22 deletions

View File

@@ -17,7 +17,7 @@
</div>
</div>
<ThemeToggle :is-dark="isDarkTheme" @toggle="toggleTheme" />
<ThemeToggle :theme-mode="themeMode" @toggle="toggleTheme" />
<div class="flex-1 space-y-2 overflow-y-auto scrollbar-muted pr-2">
<button
@@ -72,7 +72,7 @@ defineProps<{
categories: Record<string, any>;
activeCategory: string;
categoryCounts: Record<string, number>;
isDarkTheme: boolean;
themeMode: "light" | "dark" | "auto";
}>();
const emit = defineEmits<{