git_pull 重构,样式优化

This commit is contained in:
whyour
2021-04-01 23:50:24 +08:00
parent 4ca49edf01
commit d5b9bca68b
12 changed files with 278 additions and 290 deletions
+10 -2
View File
@@ -39,11 +39,19 @@ export default function (props: any) {
const theme = localStorage.getItem('qinglong_dark_theme') || 'auto';
setFetchMethod(window.fetch);
if (theme === 'dark') {
enableDarkMode({ darkSchemeTextColor: '#fff' });
enableDarkMode({
brightness: 100,
contrast: 90,
sepia: 10,
});
} else if (theme === 'light') {
disableDarkMode();
} else {
followSystemColorScheme({ darkSchemeTextColor: '#fff' });
followSystemColorScheme({
brightness: 100,
contrast: 90,
sepia: 10,
});
}
}, []);