From 85ba24f1c3132741e640df18b0e7f64b903961f3 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 13 Sep 2025 21:45:34 +0800 Subject: [PATCH] fix(ui): add dark mode support for provider modals - Add dark mode styles to ProviderForm modal (background, borders, text) - Update ApiKeyInput component with dark mode colors - Add dark mode detection to ClaudeConfigEditor for JSON editor - Apply dark mode styles to CodexConfigEditor textareas - Update PresetSelector buttons for dark mode - Ensure consistent amber color scheme for all hint boxes in dark mode This ensures proper visibility and readability of add/edit provider dialogs when dark mode is enabled. --- src/components/ProviderForm.tsx | 61 +++++++++++-------- src/components/ProviderForm/ApiKeyInput.tsx | 11 ++-- .../ProviderForm/ClaudeConfigEditor.tsx | 37 +++++++++-- .../ProviderForm/CodexConfigEditor.tsx | 16 +++-- .../ProviderForm/PresetSelector.tsx | 13 ++-- 5 files changed, 89 insertions(+), 49 deletions(-) diff --git a/src/components/ProviderForm.tsx b/src/components/ProviderForm.tsx index 5cea1a5..bdddf6e 100644 --- a/src/components/ProviderForm.tsx +++ b/src/components/ProviderForm.tsx @@ -646,17 +646,19 @@ const ProviderForm: React.FC = ({ }} > {/* Backdrop */} -
+
{/* Modal */} -
+
{/* Header */} -
-

{title}

+
+

+ {title} +