From ead77056c0f557deecc0dcfaaf336e6d0a18d05b Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sun, 10 Aug 2025 04:20:39 +0800 Subject: [PATCH] fix(stage-ui): color picker incorrect --- .../src/components/DataPane/ColorPicker.vue | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/stage-ui/src/components/DataPane/ColorPicker.vue b/packages/stage-ui/src/components/DataPane/ColorPicker.vue index 99d643be0..0edf7aa48 100644 --- a/packages/stage-ui/src/components/DataPane/ColorPicker.vue +++ b/packages/stage-ui/src/components/DataPane/ColorPicker.vue @@ -352,7 +352,7 @@ watch([hue, saturation, value, alphaValue], () => { -
+
{ :value="Math.round(alphaValue * 100)" min="0" max="100" - class="w-16 border rounded px-2 py-1 text-sm" + class="w-16 border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="A%" @input="handleAlphaInput(Number(($event?.target as HTMLInputElement).value))" > @@ -486,7 +486,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="currentColorRgb.r" min="0" max="255" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="R" @input="handleRgbInput('r', Number(($event?.target as HTMLInputElement).value))" > @@ -495,7 +495,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="currentColorRgb.g" min="0" max="255" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="G" @input="handleRgbInput('g', Number(($event?.target as HTMLInputElement).value))" > @@ -504,7 +504,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="currentColorRgb.b" min="0" max="255" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="B" @input="handleRgbInput('b', Number(($event?.target as HTMLInputElement).value))" > @@ -514,7 +514,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="Math.round(alphaValue * 100)" min="0" max="100" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="A%" @input="handleAlphaInput(Number(($event?.target as HTMLInputElement).value))" > @@ -527,7 +527,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="Math.round(hue)" min="0" max="360" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="H°" @input="handleHsvInput('h', Number(($event?.target as HTMLInputElement).value))" > @@ -536,7 +536,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="Math.round(saturation)" min="0" max="100" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="S%" @input="handleHsvInput('s', Number(($event?.target as HTMLInputElement).value))" > @@ -545,7 +545,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="Math.round(value)" min="0" max="100" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="V%" @input="handleHsvInput('v', Number(($event?.target as HTMLInputElement).value))" > @@ -555,7 +555,7 @@ watch([hue, saturation, value, alphaValue], () => { :value="Math.round(alphaValue * 100)" min="0" max="100" - class="border rounded-lg px-2 py-1 text-sm" + class="border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700" placeholder="A%" @input="handleAlphaInput(Number(($event?.target as HTMLInputElement).value))" >