From e6b66f425ac73207b41ab9a9b04a1ee7d8ccd7f5 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 17 Oct 2025 23:40:07 +0800 Subject: [PATCH] refine: enhance settings dialog UI with improved visual feedback Improve the visual hierarchy and interaction feedback in the settings dialog: 1. Tab navigation enhancement: - Active tabs now use blue background (blue-500/600) with white text - Add shadow effect to active tabs for better depth perception - Inactive tabs show hover effects (opacity + background) - Consistent with app's primary blue theme color 2. Switch component visual improvement: - Checked state: blue background (blue-500/600) for clear indication - Unchecked state: gray background (gray-300/700) for neutral appearance - White thumb color for better contrast on both states - Enhanced focus ring (ring-2 + offset-2) for accessibility 3. Layout spacing refinement: - Change content area padding from pb-4 to py-4 for symmetrical spacing - Ensure consistent 4-unit spacing between all dialog sections 4. Clarify plugin integration description: - Update description to accurately reflect that provider switching in this app will sync with VS Code Claude Code extension - Previous wording was ambiguous about the synchronization behavior Files changed: - src/components/ui/tabs.tsx: Enhanced tab visual states - src/components/ui/switch.tsx: Improved switch contrast - src/components/settings/SettingsDialog.tsx: Fixed spacing - src/i18n/locales/{zh,en}.json: Updated plugin description --- src/components/settings/SettingsDialog.tsx | 2 +- src/components/ui/switch.tsx | 4 ++-- src/components/ui/tabs.tsx | 2 +- src/i18n/locales/en.json | 2 +- src/i18n/locales/zh.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/settings/SettingsDialog.tsx b/src/components/settings/SettingsDialog.tsx index 24d6a4c..b1aace9 100644 --- a/src/components/settings/SettingsDialog.tsx +++ b/src/components/settings/SettingsDialog.tsx @@ -181,7 +181,7 @@ export function SettingsDialog({ ) : ( -
+
diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 6e46cc3..c40996c 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -26,7 +26,7 @@ const TabsTrigger = React.forwardRef<