fix font settings
This commit is contained in:
parent
63b4586c0f
commit
b2ec9cb890
2 changed files with 4 additions and 10 deletions
|
|
@ -69,14 +69,8 @@ const GeneralTab = {
|
||||||
},
|
},
|
||||||
updateFont(key, value) {
|
updateFont(key, value) {
|
||||||
useLocalConfigStore().set({
|
useLocalConfigStore().set({
|
||||||
path: 'theme3hacks',
|
path: `theme3hacks.fonts.${key}`,
|
||||||
value: {
|
value,
|
||||||
...this.mergedConfig.theme3hacks,
|
|
||||||
fonts: {
|
|
||||||
...this.mergedConfig.theme3hacks.fonts,
|
|
||||||
[key]: value,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,9 @@ export const useLocalConfigStore = defineStore('local_config', {
|
||||||
set(this.prefsStorage, path, undefined)
|
set(this.prefsStorage, path, undefined)
|
||||||
},
|
},
|
||||||
clearLocalConfig() {
|
clearLocalConfig() {
|
||||||
const blankState = { ...cloneDeep(defaultState) }
|
|
||||||
Object.keys(this).forEach((k) => {
|
Object.keys(this).forEach((k) => {
|
||||||
this.prefsStorage[k] = blankState[k]
|
this.prefsStorage[k] = undefined
|
||||||
|
this.tempStorage[k] = undefined
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue