From 367d57f305c7075ba5ea1ed07e52d37e2b0fb89f Mon Sep 17 00:00:00 2001 From: LemonNeko Date: Thu, 20 Mar 2025 20:29:57 +0800 Subject: [PATCH] style(stage-web): disable color animation when dynamic theme enabled (#88) --- .../stage-web/src/components/Layouts/InteractiveArea.vue | 9 +++++++++ .../src/components/Layouts/MobileInteractiveArea.vue | 3 ++- apps/stage-web/uno.config.ts | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/stage-web/src/components/Layouts/InteractiveArea.vue b/apps/stage-web/src/components/Layouts/InteractiveArea.vue index a0461fad0..67a5a9467 100644 --- a/apps/stage-web/src/components/Layouts/InteractiveArea.vue +++ b/apps/stage-web/src/components/Layouts/InteractiveArea.vue @@ -20,6 +20,7 @@ const showMicrophoneSelect = ref(false) const providersStore = useProvidersStore() const { activeProvider, activeModel } = storeToRefs(useConsciousnessStore()) +const { themeColorsHueDynamic } = storeToRefs(useSettings()) const { audioInputs } = useDevicesList({ constraints: { audio: true }, requestPermissions: true }) const { selectedAudioDevice, isAudioInputOn, selectedAudioDeviceId } = storeToRefs(useSettings()) @@ -139,6 +140,7 @@ onAfterSend(async () => { :class="[ tab === 'chat' ? 'bg-primary-100 dark:bg-primary-900' : 'bg-white dark:bg-primary-950', tab === 'chat' ? 'text-primary-500 dark:text-primary-500' : '', + { 'transition-colors-none ': themeColorsHueDynamic }, ]" flex="~ row" :checked="tab === 'chat'" @@ -159,6 +161,7 @@ onAfterSend(async () => { :class="[ tab === 'custom' ? 'bg-primary-100 dark:bg-primary-900' : 'bg-white dark:bg-primary-950', tab === 'custom' ? 'text-primary-500 dark:text-primary-500' : '', + { 'transition-colors-none ': themeColorsHueDynamic }, ]" flex="~ row" :checked="tab === 'custom'" @@ -179,6 +182,7 @@ onAfterSend(async () => { :class="[ tab === 'clothes' ? 'bg-primary-100 dark:bg-primary-900' : 'bg-white dark:bg-primary-950', tab === 'clothes' ? 'text-primary-500 dark:text-primary-500' : '', + { 'transition-colors-none ': themeColorsHueDynamic }, ]" flex="~ row" :checked="tab === 'clothes'" @@ -213,6 +217,9 @@ onAfterSend(async () => { min-h="[100px]" max-h="[300px]" w-full rounded-t-xl p-4 font-medium outline-none transition="all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out" + :class="{ + 'transition-colors-none placeholder:transition-colors-none': themeColorsHueDynamic, + }" @submit="handleSend" /> @@ -222,6 +229,7 @@ onAfterSend(async () => {