fix underlay

This commit is contained in:
Henry Jameson 2026-04-10 17:04:32 +03:00
commit bb48d949e1
2 changed files with 2 additions and 7 deletions

View file

@ -235,7 +235,7 @@
<li> <li>
<ChoiceSetting <ChoiceSetting
id="underlayOverride" id="underlayOverride"
path="theme3hacks.underlay" path="underlay"
:options="underlayOverrideModes" :options="underlayOverrideModes"
> >
{{ $t('settings.style.themes3.hacks.underlay_overrides') }} {{ $t('settings.style.themes3.hacks.underlay_overrides') }}

View file

@ -23,15 +23,12 @@ const APPEARANCE_SETTINGS_KEYS = [
'forcedRoundness', 'forcedRoundness',
'emojiSize', 'emojiSize',
'emojiReactionsScale', 'emojiReactionsScale',
]
const HACKS_KEYS = new Set([
'fontInterface', 'fontInterface',
'fontPosts', 'fontPosts',
'fontInput', 'fontInput',
'fontMonospace', 'fontMonospace',
'underlay', 'underlay',
]) ]
const MIXED_KEYS = new Set([ const MIXED_KEYS = new Set([
...APPEARANCE_SETTINGS_KEYS, ...APPEARANCE_SETTINGS_KEYS,
@ -45,8 +42,6 @@ export const piniaStylePlugin = ({ store, options }) => {
const { path } = args[0] const { path } = args[0]
if (MIXED_KEYS.has(path)) { if (MIXED_KEYS.has(path)) {
after(() => applyStyleConfig(useMergedConfigStore().mergedConfig)) after(() => applyStyleConfig(useMergedConfigStore().mergedConfig))
}
if (HACKS_KEYS.has(path)) {
after(() => useInterfaceStore().applyTheme({ recompile: true })) after(() => useInterfaceStore().applyTheme({ recompile: true }))
} }
} }