From 42f78016dde855f5e278a4c1713d1d69c0d54875 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 1 Jun 2026 10:34:22 +0800 Subject: [PATCH] feat(ui): migrate components and pages to system colors Update folder card, file card, dual sidebar, notifications, upload tasks, and team settings components to remove all hardcoded slate, blue, and red colors. They now fully leverage standard semantic system/theme tokens, providing polished, consistent dark mode support. --- src/ui/components/chat/message-card.tsx | 10 +- src/ui/components/dual-sidebar.tsx | 18 +-- src/ui/components/fields-manager.tsx | 6 +- .../components/file-browser/file-browser.tsx | 28 ++--- .../components/file-browser/folder-card.tsx | 63 ++++++---- src/ui/components/file-system-manager.tsx | 12 +- src/ui/components/notification-card.tsx | 10 +- src/ui/components/notification-list.tsx | 10 +- src/ui/components/settings/AgentsSettings.tsx | 42 +++---- .../components/settings/ProvidersSettings.tsx | 54 ++++----- .../components/settings/SkillsConfigCard.tsx | 32 ++--- src/ui/components/upload-tasks.tsx | 8 +- src/ui/globals.css | 112 ++++++++++-------- src/ui/routes/__root.tsx | 4 +- src/ui/routes/teams/$teamId/settings.tsx | 56 ++++----- 15 files changed, 237 insertions(+), 228 deletions(-) diff --git a/src/ui/components/chat/message-card.tsx b/src/ui/components/chat/message-card.tsx index 593b7c29..65ac9e60 100644 --- a/src/ui/components/chat/message-card.tsx +++ b/src/ui/components/chat/message-card.tsx @@ -3,11 +3,11 @@ import type { UserInfo } from '@/dtos/team' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, } from '@/ui/components/ui/dialog' import { Separator } from '@/ui/components/ui/separator' import { formatTimeAgo } from '@/ui/lib/time' diff --git a/src/ui/components/dual-sidebar.tsx b/src/ui/components/dual-sidebar.tsx index 4bf15215..736e164c 100644 --- a/src/ui/components/dual-sidebar.tsx +++ b/src/ui/components/dual-sidebar.tsx @@ -72,7 +72,7 @@ export const DualSidebar: React.FC = ({ children }) => { variant="ghost" size="icon" onClick={toggleMobileMenu} - className="md:hidden fixed top-4 left-4 z-50 rounded-md bg-white/50 dark:bg-slate-800/50 backdrop-blur-sm text-slate-800 dark:text-slate-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500" + className="md:hidden fixed top-4 left-4 z-50 rounded-md bg-sidebar/50 backdrop-blur-sm text-sidebar-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring" aria-label="Open navigation menu" aria-expanded={isMobileMenuOpen} > @@ -100,9 +100,9 @@ export const DualSidebar: React.FC = ({ children }) => {