From 35cf975e760b2f1a122e8701b9c3ac73961ae7e2 Mon Sep 17 00:00:00 2001 From: RoccoSmit Date: Sat, 12 Oct 2024 00:05:52 +1100 Subject: [PATCH] fix: apply system theme dynamically (#4010) Remove appearance comparison --- web/src/App.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index daf64124..6aac053d 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -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 {