fix: apply system theme dynamically (#4010)

Remove appearance comparison
pull/4016/head
RoccoSmit 7 months ago committed by GitHub
parent 43d13a3edc
commit 35cf975e76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,10 +34,8 @@ const App = () => {
useEffect(() => {
const darkMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
const handleColorSchemeChange = (e: MediaQueryListEvent) => {
if (commonContext.appearance === "system") {
const mode = e.matches ? "dark" : "light";
setMode(mode);
}
const mode = e.matches ? "dark" : "light";
setMode(mode);
};
try {

Loading…
Cancel
Save