From cbd1903b90757dcb1a4aaf30cf9e295c4a06507a Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 21 Oct 2025 10:07:03 +0800 Subject: [PATCH] refactor: complete border unification across all components - Add border styles to JsonEditor (CodeMirror) with theme-responsive colors - Update all dialog header/footer dividers to use border-border-default - Replace remaining border-border instances in settings components - Ensure all borders (including separators and container borders) use unified design system - All borders now consistently use CSS variables and respond to light/dark themes --- src/components/JsonEditor.tsx | 8 ++++++++ src/components/settings/AboutSection.tsx | 2 +- src/components/settings/ImportExportSection.tsx | 4 ++-- src/components/settings/LanguageSettings.tsx | 2 +- src/components/settings/ThemeSettings.tsx | 2 +- src/components/settings/WindowSettings.tsx | 2 +- src/components/ui/dialog.tsx | 4 ++-- 7 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/JsonEditor.tsx b/src/components/JsonEditor.tsx index 6da1f8c..d24184a 100644 --- a/src/components/JsonEditor.tsx +++ b/src/components/JsonEditor.tsx @@ -86,6 +86,14 @@ const JsonEditor: React.FC = ({ "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace", fontSize: "14px", }, + ".cm-editor": { + border: "1px solid hsl(var(--border))", + borderRadius: "0.5rem", + }, + ".cm-editor.cm-focused": { + outline: "none", + borderColor: "hsl(var(--primary))", + }, }); const extensions = [ diff --git a/src/components/settings/AboutSection.tsx b/src/components/settings/AboutSection.tsx index 435f626..8b86082 100644 --- a/src/components/settings/AboutSection.tsx +++ b/src/components/settings/AboutSection.tsx @@ -140,7 +140,7 @@ export function AboutSection({ isPortable }: AboutSectionProps) {

-
+

CC Switch

diff --git a/src/components/settings/ImportExportSection.tsx b/src/components/settings/ImportExportSection.tsx index 44dba27..56d6b1d 100644 --- a/src/components/settings/ImportExportSection.tsx +++ b/src/components/settings/ImportExportSection.tsx @@ -51,7 +51,7 @@ export function ImportExportSection({

-
+