Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: apply system theme dynamically (#4010)

RoccoSmit35cf975e760b
diff --git a/web/src/App.tsx b/web/src/App.tsx
index daf641241..6aac053da 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 {