feat: v0.4.0 - provider icon system, settings modal & polish

- Add provider icon system with extracted icon library (cc-switch based)

- Persist icon and icon_color in SQLite and config.toml

- Add Settings modal (theme / language / update check / silent download)

- Add useTheme and useUpdateCheck hooks

- Add provider icon picker (IconPicker) with search and grid

- Fix icon frame 2-layer color difference in ProviderEdit

- Dashboard heatmap and daily usage improvements

- Sessions page polish and adaptive layout

- Bump version to 0.4.0
This commit is contained in:
KimiSwitch Dev committed 2026-07-28 16:01:11 +08:00
1 parent 14d48500bf
commit ebf2dd28d5
134 files changed
+2898 -326

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
export interface IconMetadata {
/** 图标名称(小写,如 "openai") */
name: string;
/** 显示名称(如 "OpenAI") */
displayName: string;
/** 分类(如 "ai-provider", "cloud", "tool") */
category: string;
/** 搜索关键词 */
keywords: string[];
/** 默认颜色 */
defaultColor?: string;
}
export interface IconPreset {
[key: string]: IconMetadata;
}
+4
View File
@@ -24,6 +24,10 @@ export interface Provider {
enabled?: boolean;
/** Whether this provider is the currently active one for Kimi Code. */
active?: boolean;
/** Manually selected brand icon key (from extracted icons). */
icon?: string | null;
/** Custom icon color; falls back to icon metadata defaultColor. */
icon_color?: string | null;
/** Extra agent-specific provider fields preserved across edits. */
raw_other?: unknown;
}