font overrides + fixes for font component

This commit is contained in:
Henry Jameson 2024-07-21 23:27:11 +03:00
commit 665faf892a
5 changed files with 70 additions and 13 deletions

View file

@ -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) {