fix underlay
This commit is contained in:
parent
37b562c4aa
commit
bb48d949e1
2 changed files with 2 additions and 7 deletions
|
|
@ -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') }}
|
||||||
|
|
|
||||||
|
|
@ -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 }))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue