From 594e8717443cf9d03c6d58df91998219c5f0a830 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Mon, 16 Aug 2021 18:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9A=97=E9=BB=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/index.tsx | 12 ++---------- src/pages/setting/index.tsx | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) 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]);