fix: fix grayscale wellness setting in dark mode (#1351)
This commit is contained in:
parent
4d098d6b46
commit
7628eeed66
|
@ -36,7 +36,7 @@ function loadCSS (href) {
|
|||
|
||||
export function switchToTheme (themeName = DEFAULT_THEME, enableGrayscale) {
|
||||
if (enableGrayscale) {
|
||||
themeName = prefersDarkTheme ? 'grayscale-dark' : 'grayscale'
|
||||
themeName = prefersDarkTheme ? 'dark-grayscale' : 'grayscale'
|
||||
}
|
||||
let themeColor = window.__themeColors[themeName]
|
||||
meta.content = themeColor || window.__themeColors[DEFAULT_THEME]
|
||||
|
|
Loading…
Reference in a new issue