Add monochrome theme with grayscale filter (#4541)

This commit is contained in:
Zenith Rifle 2026-01-04 21:32:51 +08:00 committed by GitHub
parent 10fa9f6d17
commit 46b6ae53bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 = () => {