mirror of
https://github.com/fmhy/edit.git
synced 2026-01-12 15:01:06 +11:00
Add monochrome theme with grayscale filter (#4541)
This commit is contained in:
parent
10fa9f6d17
commit
46b6ae53bb
5 changed files with 186 additions and 39 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue