update to palettes GUI + disable theme-setting stuff while change is in progress

This commit is contained in:
Henry Jameson 2024-12-26 23:45:43 +02:00
commit 6a1a3ebf13
5 changed files with 94 additions and 60 deletions

View file

@ -30,6 +30,8 @@
v-if="apply"
class="btn button-default palette-apply-button"
@click="applyPalette"
:disabled="disabled"
:class="{ disabled }"
>
{{ $t('settings.style.themes3.palette.apply') }}
</button>
@ -67,7 +69,7 @@ const paletteKeys = [
'wallpaper'
]
const props = defineProps(['modelValue', 'compact', 'apply'])
const props = defineProps(['modelValue', 'compact', 'apply', 'disabled'])
const emit = defineEmits(['update:modelValue', 'applyPalette'])
const getExportedObject = () => paletteKeys.reduce((acc, key) => {
const value = props.modelValue[key]