diff --git a/src/components/config/pages/LEDsConfig.vue b/src/components/config/pages/LEDsConfig.vue index 5b223ac..54e8cfa 100644 --- a/src/components/config/pages/LEDsConfig.vue +++ b/src/components/config/pages/LEDsConfig.vue @@ -8,9 +8,8 @@

{{ $t('config_options.light_designer.led_mode') }}

- - +
@@ -21,4 +20,21 @@ import { ScrollArea } from '@/components/ui/scroll-area/index.js' import { Lightbulb, Palette } from 'lucide-vue-next' import ConfigSection from '@/components/config/ConfigSection.vue' import PaletteInput from '@/components/config/pages/PaletteInput.vue' +import Color from 'color' +import { ref } from 'vue' + +const colors = ref({ + primary: { + key: 'config_options.light_designer.primary_color', + color: Color('#ff0000'), + }, + secondary: { + key: 'config_options.light_designer.secondary_color', + color: Color('#00ff00'), + }, + pointer: { + key: 'config_options.light_designer.pointer_color', + color: Color('#0000ff'), + }, +}) \ No newline at end of file diff --git a/src/components/config/pages/PaletteInput.vue b/src/components/config/pages/PaletteInput.vue index 67f37d4..74fd07e 100644 --- a/src/components/config/pages/PaletteInput.vue +++ b/src/components/config/pages/PaletteInput.vue @@ -6,7 +6,7 @@ :class="currentOption!==key ? 'hover:bg-zinc-800 text-zinc-200' : 'text-black bg-zinc-200 hover:bg-zinc-100'" @click="currentOption = key"> {{ $t(option.key) }} -
+
@@ -14,23 +14,23 @@ \ No newline at end of file