fix and simplify font settings
This commit is contained in:
parent
9f3c0ec60b
commit
34a7bf83b2
6 changed files with 15 additions and 15 deletions
|
|
@ -196,7 +196,7 @@ export const useInterfaceStore = defineStore('interface', {
|
|||
}
|
||||
},
|
||||
setFontsList(value) {
|
||||
this.localFonts = [...new Set(value.map((font) => font.family)).values()]
|
||||
this.localFonts = [...new Set(value.map((font) => font)).values()]
|
||||
},
|
||||
queryLocalFonts() {
|
||||
if (this.localFonts !== null) return
|
||||
|
|
@ -654,7 +654,7 @@ export const useInterfaceStore = defineStore('interface', {
|
|||
}
|
||||
|
||||
Object.entries(fontMap).forEach(([font, component]) => {
|
||||
const family = mergedConfig[`font${font}`]?.family
|
||||
const family = mergedConfig[`font${font}`]
|
||||
const variable = font === 'Monospace' ? '--monoFont' : '--font'
|
||||
if (family) {
|
||||
hacks.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue