fix: theme invert
This commit is contained in:
parent
d8e79523e6
commit
0c6440f3fb
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ export function setTheme(theme: Theme): Theme {
|
||||||
case Theme.Light:
|
case Theme.Light:
|
||||||
case Theme.Dark:
|
case Theme.Dark:
|
||||||
localStorage.setItem('currentTheme', theme);
|
localStorage.setItem('currentTheme', theme);
|
||||||
Dark.set(theme !== Theme.Dark);
|
Dark.set(theme === Theme.Dark);
|
||||||
return theme;
|
return theme;
|
||||||
default:
|
default:
|
||||||
localStorage.setItem('currentTheme', Theme.Auto);
|
localStorage.setItem('currentTheme', Theme.Auto);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue