mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
refactor: rename Tool.alpha to Tool.experimental
This commit is contained in:
@@ -11,9 +11,7 @@ interface ThemeStore {
|
||||
|
||||
function getSystemTheme(): "light" | "dark" {
|
||||
if (typeof window === "undefined") return "light";
|
||||
return window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
? "dark"
|
||||
: "light";
|
||||
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||
}
|
||||
|
||||
export const useThemeStore = create<ThemeStore>()(
|
||||
@@ -27,6 +25,6 @@ export const useThemeStore = create<ThemeStore>()(
|
||||
set({ theme, resolvedTheme: resolved });
|
||||
},
|
||||
}),
|
||||
{ name: "stirling-image-theme" }
|
||||
)
|
||||
{ name: "stirling-image-theme" },
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user