增加主题快速切换按钮

This commit is contained in:
2025-08-21 11:25:04 +08:00
parent c015fcf5f0
commit 6e834a1a7c
3 changed files with 151 additions and 27 deletions

View File

@@ -4,6 +4,7 @@ import { Circle, FileText, Settings, ExternalLink, BarChart3, Network, Info, Bot
import { Button } from "@/components/ui/button";
import { Popover } from "@/components/ui/popover";
import { LanguageSwitcher } from "@/components/LanguageSwitcher";
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
import { useTranslation } from "@/hooks/useTranslation";
import { api, type ClaudeVersionStatus } from "@/lib/api";
import { cn } from "@/lib/utils";
@@ -240,6 +241,9 @@ export const Topbar: React.FC<TopbarProps> = ({
{/* Language Switcher */}
<LanguageSwitcher />
{/* Theme Switcher */}
<ThemeSwitcher />
<Button
variant="ghost"
size="icon"