fix(style): 夜间主题下忽略颜色选择器;添加菜单滚动条反转

This commit is contained in:
sight 2022-03-30 10:51:02 +08:00
parent b3ef9d8d9a
commit 2018f6287f

View File

@ -41,9 +41,18 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
const changeTheme = (theme: string) => {
if (theme === "dark") {
enableDarkMode({
mode: 1,
brightness: 100,
contrast: 90,
sepia: 10,
sepia: 0,
// darkSchemeTextColor: 'rgba(255, 255, 255, 0.9)',
// darkSchemeBackgroundColor: '#22272E'
}, {
invert: ['.scrollbar-thumb'],
css: ``,
ignoreInlineStyle: ['.layui-colorpicker-trigger-span','layui-color-picker,div'],
ignoreImageAnalysis: [],
disableStyleSheetsProxy: false,
});
} else {
disableDarkMode();