Add monochrome theme with grayscale filter

This commit is contained in:
Eason Li 2026-01-04 20:41:42 +08:00
parent 28d58ed18f
commit 7d2de8ce2a
5 changed files with 186 additions and 39 deletions

View file

@ -211,12 +211,8 @@ watch(selectedColor, async (color) => {
if (!color) return;
const theme = generateThemeFromColor(color)
themeRegistry[`color-${color}`] = theme
// Explicitly set the theme to override any previous selection
await nextTick()
console.log('Setting theme to:', `color-${color}`)
console.log('Current themeName:', themeName ? themeName.value : undefined, 'mode:', mode ? (mode as any).value : undefined)
setTheme(`color-${color}`)
console.log('After setTheme, themeName:', themeName ? themeName.value : undefined)
})
const toggleAmoled = () => {