Merge branch 'setttingssync' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2026-03-25 11:56:24 +02:00
commit d03ca88eba
3 changed files with 7 additions and 6 deletions

View file

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

View file

@ -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 />
{{ ' ' }} {{ ' ' }}

View file

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