fix font overrides
This commit is contained in:
parent
e202f18720
commit
54298927da
3 changed files with 7 additions and 6 deletions
|
|
@ -27,6 +27,7 @@ export default {
|
|||
},
|
||||
emits: ['update:modelValue'],
|
||||
data() {
|
||||
console.log(this.fallback)
|
||||
return {
|
||||
manualEntry: false,
|
||||
availableOptions: [
|
||||
|
|
@ -45,7 +46,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
present() {
|
||||
return typeof this.modelValue !== 'undefined'
|
||||
return this.modelValue != null
|
||||
},
|
||||
localFontsList() {
|
||||
return useInterfaceStore().localFonts
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:id="name + '-o'"
|
||||
class="font-checkbox setting-control setting-label"
|
||||
:model-value="present"
|
||||
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
|
||||
@change="$emit('update:modelValue', modelValue == null ? fallback : null)"
|
||||
>
|
||||
<LocalSettingIndicator />
|
||||
{{ ' ' }}
|
||||
|
|
|
|||
|
|
@ -620,22 +620,22 @@ export const LOCAL_DEFAULT_CONFIG_DEFINITIONS = {
|
|||
},
|
||||
fontInterface: {
|
||||
description: 'Interface font override',
|
||||
type: 'string',
|
||||
type: 'object',
|
||||
default: null,
|
||||
},
|
||||
fontInput: {
|
||||
description: 'Input font override',
|
||||
type: 'string',
|
||||
type: 'object',
|
||||
default: null,
|
||||
},
|
||||
fontPosts: {
|
||||
description: 'Post font override',
|
||||
type: 'string',
|
||||
type: 'object',
|
||||
default: null,
|
||||
},
|
||||
fontMonospace: {
|
||||
description: 'Monospace font override',
|
||||
type: 'string',
|
||||
type: 'object',
|
||||
default: null,
|
||||
},
|
||||
themeDebug: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue