UPD: Refactor components

This commit is contained in:
Robert Kossessa
2024-02-04 17:46:26 +01:00
parent 7f85f9986e
commit 5e3f29058f
24 changed files with 120 additions and 71 deletions

View File

@@ -0,0 +1,23 @@
<template>
<ConfigSection title="Key Light" :icon-component="Lightbulb">
<PaletteInput v-model="keyColors" />
</ConfigSection>
</template>
<script setup>
import { Lightbulb } from 'lucide-vue-next'
import ConfigSection from '@/components/common/ConfigSection.vue'
import PaletteInput from '@/components/common/PaletteInput.vue'
import Color from 'color'
import { ref } from 'vue'
const keyColors = ref({
default: {
titleKey: 'default',
color: Color('#4f25ef'),
},
pressed: {
titleKey: 'pressed',
color: Color('#d0078f'),
},
})
</script>