Skip to content

Commit

Permalink
fix: apply system theme dynamically (#4010)
Browse files Browse the repository at this point in the history
Remove appearance comparison
  • Loading branch information
RoccoSmit authored Oct 11, 2024
1 parent 43d13a3 commit 35cf975
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 35cf975

Please sign in to comment.