fixed fonts (post fonts seem to be broken in develop)
This commit is contained in:
parent
b2ec9cb890
commit
e6649c7c25
11 changed files with 110 additions and 118 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
|
||||
import { applyStyleConfig } from 'src/services/style_setter/style_setter.js'
|
||||
|
|
@ -23,6 +24,15 @@ const APPEARANCE_SETTINGS_KEYS = [
|
|||
'emojiSize',
|
||||
'emojiReactionsScale',
|
||||
]
|
||||
|
||||
const HACKS_KEYS = new Set([
|
||||
'fontInterface',
|
||||
'fontPosts',
|
||||
'fontInput',
|
||||
'fontMonospace',
|
||||
'underlay',
|
||||
])
|
||||
|
||||
const MIXED_KEYS = new Set([
|
||||
...APPEARANCE_SETTINGS_KEYS,
|
||||
...APPEARANCE_SETTINGS_KEYS.map((x) => 'simple.' + x),
|
||||
|
|
@ -36,6 +46,9 @@ export const piniaStylePlugin = ({ store, options }) => {
|
|||
if (MIXED_KEYS.has(path)) {
|
||||
after(() => applyStyleConfig(useSyncConfigStore().mergedConfig))
|
||||
}
|
||||
if (HACKS_KEYS.has(path)) {
|
||||
after(() => useInterfaceStore().applyTheme({ recompile: true }))
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue