Skip to content

Commit 51baa1c

Browse files
committed
Switch to all themes.
1 parent 9025feb commit 51baa1c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

examples/server/webui/src/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@use 'tailwindcss';
33

44
@plugin 'daisyui' {
5-
themes: 'light', 'dark', 'cupcake', 'bumblebee', 'emerald', 'corporate', 'synthwave', 'retro', 'cyberpunk', 'valentine', 'halloween', 'garden', 'forest', 'aqua', 'lofi', 'pastel', 'fantasy', 'wireframe', 'black', 'luxury', 'dracula', 'cmyk', 'autumn', 'business', 'acid', 'lemonade', 'night', 'coffee', 'winter', 'dim', 'nord', 'sunset',
5+
themes: all,
66
}
77

88
html {

examples/server/webui/src/utils/storage.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,7 @@ const StorageUtils = {
194194
localStorage.setItem('config', JSON.stringify(config));
195195
},
196196
getTheme(): string {
197-
const theme = localStorage.getItem('theme') || 'auto';
198-
const activeTheme = (theme === 'auto') ?
199-
(window.matchMedia("(prefers-color-scheme: light)").matches ? 'light' : 'dark') :
200-
theme;
201-
202-
return activeTheme;
197+
return localStorage.getItem('theme') || 'auto';
203198
},
204199
setTheme(theme: string) {
205200
if (theme === 'auto') {

0 commit comments

Comments
 (0)