Unverified Commit 35cf975e authored by RoccoSmit's avatar RoccoSmit Committed by GitHub

fix: apply system theme dynamically (#4010)

Remove appearance comparison
parent 43d13a3e
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment