diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 35530de5..cfa09e4c 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -44,19 +44,11 @@ export default function (props: any) { const theme = localStorage.getItem('qinglong_dark_theme') || 'auto'; setFetchMethod(window.fetch); if (theme === 'dark') { - enableDarkMode({ - brightness: 100, - contrast: 90, - sepia: 10, - }); + enableDarkMode({}); } else if (theme === 'light') { disableDarkMode(); } else { - followSystemColorScheme({ - brightness: 100, - contrast: 90, - sepia: 10, - }); + followSystemColorScheme({}); } }, []); diff --git a/src/pages/setting/index.tsx b/src/pages/setting/index.tsx index 12da51ca..1f28d90c 100644 --- a/src/pages/setting/index.tsx +++ b/src/pages/setting/index.tsx @@ -56,19 +56,11 @@ const Password = () => { useEffect(() => { setFetchMethod(window.fetch); if (theme === 'dark') { - enableDarkMode({ - brightness: 100, - contrast: 90, - sepia: 10, - }); + enableDarkMode({}); } else if (theme === 'light') { disableDarkMode(); } else { - followSystemColorScheme({ - brightness: 100, - contrast: 90, - sepia: 10, - }); + followSystemColorScheme({}); } }, [theme]);