diff --git a/src/App.tsx b/src/App.tsx index d628998..79112fb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,6 +27,13 @@ export const App: ParentComponent = ({ children }) => { const prefersDark = usePrefersDark() createEffect(() => { + console.log( + autoSwitchTheme(), + prefersDark(), + favNightTheme(), + favDayTheme(), + ) + if (autoSwitchTheme()) setCurTheme(prefersDark() ? favNightTheme() : favDayTheme()) }) diff --git a/src/pages/Config.tsx b/src/pages/Config.tsx index 5883d62..eb0b452 100644 --- a/src/pages/Config.tsx +++ b/src/pages/Config.tsx @@ -492,13 +492,16 @@ const ConfigForXd = () => { {t('favDayTheme')} @@ -507,13 +510,16 @@ const ConfigForXd = () => { {t('favNightTheme')}