Files
mqttx/gpui-app/themes/kibble.json
T
JoeAllen ac5b6e9862 feat: 接入 gpui-kit 全部 38 个官方主题预设 + 按语言拆分 locales + 0.7.3 升级
主题预设("我全都要"):
- gpui-app/themes/ 内嵌官方捆绑 21 个文件 36 变体 + Default Light/Dark
- theme.rs:register_bundled_themes(bootstrap 注册)/ apply_theme_preset
  (Theme::update + apply_config 整包应用)/ theme_preset_names
- settings.theme_preset 字段(serde 默认 linear);保存/启动按预设分派,
  外观模式与跟随系统监听仅对 Linear 生效(预设自带明暗不被冲掉)
- 设置页「主题预设」下拉(Linear + 38 注册名),切换即时生效

语言包按语言分文件(用户要求):
- locales/ui.yml → locales/en.yml + locales/zh-CN.yml
  (rust-i18n 文件名 stem 即 locale,扁平 "ns.key": "value")
- i18n.rs 测试改为双文件键集合一致性 + 占位符强制

修复:设置对话框打开即栈溢出
- gpui-kit 0.7.0→0.7.3 无法解决;根因是 Windows 主线程 8MB 栈对
  Dialog 覆盖层内 Select 渲染的深调用链不足,注册多主题后越过阈值
  (64MB 试验栈下不复现,证实深调用链而非无限递归)
- .cargo/config.toml:Windows 主线程栈 8MB→64MB
- 注册时机移到 bootstrap(main 的 init_themes,gpui_kit::init 后、
  窗口创建前),对齐官方 story 示例的注册姿势
- 误伤修复:gpui-app/Cargo.toml 被批量编辑误删 bin.name 与
  build-dependencies 段;examples/flood.rs 误删已恢复

官方 skill 同步:npx skills add 被墙,gh-proxy 镜像克隆后手动覆盖
~/.agents/skills 与 ~/.zcode/skills 的 gpui-kit + gpui-kit-design-guides。
2026-10-12 17:07:40 +08:00

158 lines
4.5 KiB
JSON

{
"$schema": "https://github.com/longbridge/gpui-kit/raw/refs/heads/main/.theme-schema.json",
"name": "Kibble",
"author": "iTerm2-Color-Schemes",
"url": "https://github.com/mbadolato/iTerm2-Color-Schemes",
"themes": [
{
"name": "Kibble",
"mode": "dark",
"colors": {
"accent.background": "#252525",
"accent.foreground": "#f7f7f7",
"background": "#0e100a",
"border": "#292a24",
"danger.background": "#e07b5c",
"foreground": "#f7f7f7",
"input.border": "#333333",
"list.active.background": "#2BCF1315",
"list.active.border": "#2BCF13",
"list.hover.background": "#2c292b54",
"list.even.background": "#24222355",
"muted.background": "#292a2455",
"muted.foreground": "#777777",
"panel.background": "#003a5b",
"popover.background": "#0e100a",
"popover.foreground": "#f7f7f7",
"primary.active.background": "#6ce05c99",
"primary.background": "#6ce05c",
"primary.foreground": "#101010",
"scrollbar.background": "#003a5b00",
"scrollbar.thumb.background": "#726E69",
"secondary.background": "#22231f",
"secondary.active.background": "#292825",
"secondary.foreground": "#f7f7f7",
"secondary.hover.background": "#22231f",
"success.background": "#5c6ee0",
"warning.background": "#e0c85c",
"info.background": "#5cd1e0",
"selection.background": "#9ba787",
"tab.active.background": "#0e100a",
"tab.active.foreground": "#f7f7f7",
"tab.foreground": "#969696",
"title_bar.background": "#161712",
"base.red": "#C70231",
"base.red.light": "#e07b5c",
"base.green": "#2BCF13",
"base.green.light": "#6ce05c",
"base.blue": "#3449d1",
"base.blue.light": "#5c6ee0",
"base.cyan": "#0798ab",
"base.cyan.light": "#5cd1e0",
"base.magenta": "#8400ff",
"base.magenta.light": "#C495F0",
"base.yellow": "#c7a302",
"base.yellow.light": "#e0c85c"
},
"highlight": {
"editor.foreground": "#f7f7f7",
"editor.background": "#0e100a",
"editor.active_line.background": "#242223",
"editor.line_number": "#726E69",
"editor.active_line_number": "#f7f7f7",
"editor.invisible": "#726E6966",
"conflict": "#c70031",
"created": "#2BCF13",
"deleted": "#c70031",
"error": "#c70031",
"hidden": "#726E69",
"hint": "#0798ab",
"ignored": "#726E69",
"info": "#0798ab",
"modified": "#3449d1",
"predictive": "#726E69",
"renamed": "#3449d1",
"success": "#2BCF13",
"unreachable": "#726E69",
"warning": "#c7a302",
"syntax": {
"attribute": {
"color": "#3449d1"
},
"boolean": {
"color": "#c7a302"
},
"comment": {
"color": "#726E69",
"font_style": "italic"
},
"comment.doc": {
"color": "#726E69",
"font_style": "italic"
},
"constant": {
"color": "#c7a302"
},
"constructor": {
"color": "#3449d1"
},
"embedded": {
"color": "#f7f7f7"
},
"function": {
"color": "#c7a302"
},
"keyword": {
"color": "#c70031"
},
"link_text": {
"color": "#0798ab",
"font_style": "normal"
},
"link_uri": {
"color": "#68f2e0",
"font_style": "italic"
},
"number": {
"color": "#c70031"
},
"string": {
"color": "#2BCF13"
},
"string.escape": {
"color": "#2BCF13"
},
"string.regex": {
"color": "#2BCF13"
},
"string.special": {
"color": "#c7a302"
},
"string.special.symbol": {
"color": "#c7a302"
},
"tag": {
"color": "#3449d1"
},
"text.literal": {
"color": "#c7a302"
},
"title": {
"color": "#3449d1",
"font_weight": 600
},
"type": {
"color": "#3449d1"
},
"property": {
"color": "#f7f7f7"
},
"variable.special": {
"color": "#c70031"
}
}
}
}
]
}