深蓝色ui

This commit is contained in:
fengxiangdebaozi committed 2026-06-01 15:11:05 +08:00
1 parent 169346cdbd
commit 685abb6aa9
5 files changed
+80 -2

No files matched your search

@@ -20,6 +20,7 @@ import {
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { listAgents, type Agent } from "@/core/agents";
import { useTheme } from "@/contexts/ThemeContext";
import { cn } from "@/lib/utils";
import {
@@ -183,6 +184,11 @@ export function RecommendAgentsDialog({
onCancel,
onConfirm,
}: RecommendAgentsDialogProps) {
// 弹窗经 Radix portal 渲染到 .roundtable-planning 之外,页面的深蓝 scoped 样式
// 够不着它。深色下手动挂上 .roundtable-planning--dark,让同一套深蓝 token + 兜底
// 映射也作用于弹窗;浅色不挂,弹窗浅色外观不变。
const { theme } = useTheme();
const isDark = theme === "dark";
const [state, setState] = useState<InternalState>(INITIAL_STATE);
const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set());
@@ -516,7 +522,12 @@ export function RecommendAgentsDialog({
return (
<Dialog open={open} onOpenChange={handleOpenChange}>
<DialogContent className="sm:max-w-3xl max-h-[85vh] flex flex-col overflow-hidden gap-3">
<DialogContent
className={cn(
"sm:max-w-3xl max-h-[85vh] flex flex-col overflow-hidden gap-3",
isDark && "roundtable-planning--dark",
)}
>
<DialogHeader className="shrink-0">
<DialogTitle className="flex items-center gap-2">
<SparklesIcon className="size-5 text-purple-500" />