aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/tabs/appearance_tab.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-07-21 23:27:11 +0300
committerHenry Jameson <me@hjkos.com>2024-07-21 23:27:11 +0300
commit665faf892a418fa1e7aeda1d1c82d926a2ed4f3a (patch)
tree07bf33f4d07360f8d0b2caafe7af1d953784fcbe /src/components/settings_modal/tabs/appearance_tab.js
parent895261e112dc520136fde82b34a649812eca6f64 (diff)
font overrides + fixes for font component
Diffstat (limited to 'src/components/settings_modal/tabs/appearance_tab.js')
-rw-r--r--src/components/settings_modal/tabs/appearance_tab.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js
index 7ec22641..98d38288 100644
--- a/src/components/settings_modal/tabs/appearance_tab.js
+++ b/src/components/settings_modal/tabs/appearance_tab.js
@@ -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) {