From 25e06085f325775de80b7cf955d1519f46cc9728 Mon Sep 17 00:00:00 2001 From: LemonNeko Date: Sat, 8 Mar 2025 16:51:48 +0800 Subject: [PATCH] feat(stage): custom primary colors (#53) * feat(stage-ui): allow disable transitions * fix(stage-web): apply motion map from file * chore(stage-web): change icon * feat(stage): custom primary colors --- .../renderer/src/components/ChatHistory.vue | 10 +- .../src/components/InteractiveArea.vue | 12 +- .../src/renderer/src/pages/index.vue | 4 +- .../src/renderer/src/pages/settings.vue | 32 +- apps/stage-web/src/App.vue | 11 +- .../src/components/Backgrounds/Cross.vue | 5 +- .../components/Layouts/AnimatedBackground.vue | 2 +- .../components/Layouts/InteractiveArea.vue | 36 +-- .../Layouts/MobileInteractiveArea.vue | 12 +- .../src/components/Menu/IconItem.vue | 4 +- .../src/components/Widgets/ChatHistory.vue | 6 +- .../src/components/Widgets/Live2DSettings.vue | 293 +++++++++--------- .../components/Widgets/MobileChatHistory.vue | 8 +- apps/stage-web/src/pages/index.vue | 2 +- apps/stage-web/src/pages/settings/index.vue | 39 ++- .../src/pages/settings/models/index.vue | 8 + .../src/pages/settings/modules/index.vue | 4 +- .../src/pages/settings/themes/index.vue | 90 ++++++ apps/stage-web/src/styles/themes.css | 1 + apps/stage-web/uno.config.ts | 22 ++ .../stage-ui/src/components/Widgets/Stage.vue | 4 +- packages/stage-ui/src/stores/settings.ts | 6 + .../src/components/StageTransitionGroup.vue | 6 + 23 files changed, 402 insertions(+), 215 deletions(-) diff --git a/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue b/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue index 41a20968c..2fa1e949c 100644 --- a/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue +++ b/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue @@ -36,7 +36,7 @@ onTokenLiteral(async () => {
@@ -61,14 +61,14 @@ onTokenLiteral(async () => {
- +
diff --git a/apps/stage-tamagotchi/src/renderer/src/components/InteractiveArea.vue b/apps/stage-tamagotchi/src/renderer/src/components/InteractiveArea.vue index 4f8ec1604..f6d1e90f1 100644 --- a/apps/stage-tamagotchi/src/renderer/src/components/InteractiveArea.vue +++ b/apps/stage-tamagotchi/src/renderer/src/components/InteractiveArea.vue @@ -104,9 +104,9 @@ onMounted(() => { {
diff --git a/apps/stage-tamagotchi/src/renderer/src/pages/index.vue b/apps/stage-tamagotchi/src/renderer/src/pages/index.vue index 214ca0c2f..784ab6d80 100644 --- a/apps/stage-tamagotchi/src/renderer/src/pages/index.vue +++ b/apps/stage-tamagotchi/src/renderer/src/pages/index.vue @@ -64,7 +64,7 @@ const modeIndicatorClass = computed(() => { >
-
+
DRAG HERE TO MOVE
@@ -113,7 +113,7 @@ const modeIndicatorClass = computed(() => { } .wall { - @apply text-pink-200; + @apply text-primary-200; --wall-width: 8px; animation: wall-move 1s linear infinite; diff --git a/apps/stage-tamagotchi/src/renderer/src/pages/settings.vue b/apps/stage-tamagotchi/src/renderer/src/pages/settings.vue index 1798a9fcb..0021665a8 100644 --- a/apps/stage-tamagotchi/src/renderer/src/pages/settings.vue +++ b/apps/stage-tamagotchi/src/renderer/src/pages/settings.vue @@ -153,9 +153,9 @@ function isConflict(shortcut: typeof shortcuts.value[0]) {
-
+
{{ t('settings.openai-base-url.label') }}
@@ -166,7 +166,7 @@ function isConflict(shortcut: typeof shortcuts.value[0]) { h-6 w-full rounded-md bg-transparent px-2 py-1 text-right font-mono outline-none >
-
+
{{ t('settings.openai-api-key.label') }}
@@ -177,7 +177,7 @@ function isConflict(shortcut: typeof shortcuts.value[0]) { h-6 w-full rounded-md bg-transparent px-2 py-1 text-right font-mono outline-none >
-
+
{{ t('settings.elevenlabs-api-key.label') }}
@@ -188,7 +188,7 @@ function isConflict(shortcut: typeof shortcuts.value[0]) { h-6 w-full rounded-md bg-transparent px-2 py-1 text-right font-mono outline-none >
-
+
{{ t('settings.language.title') }}
@@ -204,7 +204,7 @@ function isConflict(shortcut: typeof shortcuts.value[0]) {
-
+
{{ t('settings.models') }}
@@ -223,7 +223,7 @@ function isConflict(shortcut: typeof shortcuts.value[0]) {
-
+
{{ t('settings.voices') }}
@@ -257,9 +257,9 @@ function isConflict(shortcut: typeof shortcuts.value[0]) {
-
+
{{ t('settings.viewer') }}