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