pass computeColor into shadow control, fix shadow switching types due to invalid shadow color

This commit is contained in:
Henry Jameson 2024-10-12 01:26:29 +03:00
commit 098c6af7ef
7 changed files with 19 additions and 7 deletions

View file

@ -46,12 +46,12 @@ library.add(
const props = defineProps(['modelValue'])
const emit = defineEmits(['update:modelValue'])
const paletteExporter = newExporter({
filename: 'pleroma',
extension: 'palette.json',
filename: 'pleroma_palette',
extension: 'json',
getExportedObject: () => props.modelValue
})
const paletteImporter = newImporter({
accept: '.palette.json',
accept: '.json',
onImport (parsed, filename) {
emit('update:modelValue', parsed)
}