add ability to override underlay color/opacity regardless of theme

This commit is contained in:
Henry Jameson 2024-07-16 21:01:20 +03:00
commit a378c999b7
6 changed files with 54 additions and 16 deletions

View file

@ -282,12 +282,12 @@ const config = {
}
} else {
commit('setOption', { name, value })
if (
name.startsWith('theme3hacks') ||
APPEARANCE_SETTINGS_KEYS.has(name)
) {
if (APPEARANCE_SETTINGS_KEYS.has(name)) {
applyConfig(state)
}
if (name.startsWith('theme3hacks')) {
dispatch('setTheme', { recompile: true })
}
switch (name) {
case 'theme':
dispatch('setTheme', { themeName: value, recompile: true })