font overrides + fixes for font component
This commit is contained in:
parent
895261e112
commit
665faf892a
5 changed files with 70 additions and 13 deletions
|
|
@ -151,9 +151,21 @@ const AppearanceTab = {
|
|||
...SharedComputedObject()
|
||||
},
|
||||
methods: {
|
||||
updateFont (key, value) {
|
||||
console.log(key, value)
|
||||
this.$store.dispatch('setOption', {
|
||||
name: 'theme3hacks',
|
||||
value: {
|
||||
...this.mergedConfig.theme3hacks,
|
||||
fonts: {
|
||||
...this.mergedConfig.theme3hacks.fonts,
|
||||
[key]: value
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
isThemeActive (key) {
|
||||
const { theme } = this.mergedConfig
|
||||
console.log(key, theme)
|
||||
return key === theme
|
||||
},
|
||||
setTheme (name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue