feat: 增加深色/浅色主题切换功能

- types 新增 Theme 类型(dark/light)
- storage 新增 loadTheme/saveTheme 持久化主题偏好
- ConfigPanel 新增外观分组,主题下拉选择
- App.tsx 通过 data-theme 属性挂载到 html 元素
- App.css 新增 [data-theme=light] 亮色变量覆盖

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-13 17:08:56 +08:00
parent f17c3c24a7
commit 0227822120
5 changed files with 75 additions and 7 deletions

View File

@@ -11,6 +11,8 @@ export interface SessionConfig {
language: string;
}
export type Theme = "dark" | "light";
export interface Session {
sessionId: string;
createdAt: string;