From 0e085aa01aea55110f827a95e073708fda639e8a Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 3 Jan 2026 10:15:28 +0800 Subject: [PATCH] fix(prompts): change toggle color from blue to emerald Align with the app-wide Switch component color scheme for visual consistency across all toggle elements. --- src/components/prompts/PromptToggle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/prompts/PromptToggle.tsx b/src/components/prompts/PromptToggle.tsx index aae96a7c..e2834c62 100644 --- a/src/components/prompts/PromptToggle.tsx +++ b/src/components/prompts/PromptToggle.tsx @@ -8,7 +8,7 @@ interface PromptToggleProps { /** * Toggle 开关组件(提示词专用) - * 启用时为蓝色,禁用时为灰色 + * 启用时为绿色,禁用时为灰色 */ const PromptToggle: React.FC = ({ enabled, @@ -23,8 +23,8 @@ const PromptToggle: React.FC = ({ disabled={disabled} onClick={() => onChange(!enabled)} className={` - relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500/20 - ${enabled ? "bg-blue-500 dark:bg-blue-600" : "bg-gray-300 dark:bg-gray-600"} + relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-emerald-500/20 + ${enabled ? "bg-emerald-500 dark:bg-emerald-600" : "bg-gray-300 dark:bg-gray-600"} ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"} `} >