主题预设("我全都要"): - 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。
138 lines
3.9 KiB
JSON
138 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://github.com/longbridge/gpui-kit/raw/refs/heads/main/.theme-schema.json",
|
|
"name": "Fahrenheit",
|
|
"author": "iTerm2-Color-Schemes",
|
|
"url": "https://github.com/mbadolato/iTerm2-Color-Schemes",
|
|
"themes": [
|
|
{
|
|
"name": "Fahrenheit",
|
|
"mode": "dark",
|
|
"colors": {
|
|
"accent.background": "#171717",
|
|
"accent.foreground": "#FFFFCE",
|
|
"background": "#000000",
|
|
"border": "#252525",
|
|
"danger.background": "#593002",
|
|
"foreground": "#FFFFCE",
|
|
"input.border": "#252525",
|
|
"list.active.background": "#72020222",
|
|
"list.active.border": "#720202",
|
|
"list.even.background": "#090909",
|
|
"list.hover.background": "#111111",
|
|
"muted.background": "#20202099",
|
|
"muted.foreground": "#828282",
|
|
"panel.background": "#1e1e1e",
|
|
"popover.background": "#090909",
|
|
"popover.foreground": "#FFFFCE",
|
|
"primary.background": "#720202",
|
|
"primary.foreground": "#FFFFCE",
|
|
"scrollbar.background": "#1e1e1e00",
|
|
"scrollbar.thumb.background": "#3e3e3e",
|
|
"secondary.background": "#202020",
|
|
"secondary.active.background": "#202020DD",
|
|
"secondary.foreground": "#979797",
|
|
"secondary.hover.background": "#20202099",
|
|
"tab.foreground": "#808080",
|
|
"title_bar.background": "#0e0e0e",
|
|
"table.background": "#1e1e1e00",
|
|
"table.hover.background": "#1E1E1E",
|
|
"ring": "#570101",
|
|
"base.red": "#723202",
|
|
"base.red.light": "#c97636",
|
|
"base.green": "#027225",
|
|
"base.green.light": "#39c936",
|
|
"base.yellow": "#726302",
|
|
"base.yellow.light": "#c9b536",
|
|
"base.blue": "#022d72",
|
|
"base.blue.light": "#0551cb",
|
|
"base.magenta": "#3a286c",
|
|
"base.magenta.light": "#58197a",
|
|
"base.cyan": "#027272",
|
|
"base.cyan.light": "#36c9c9"
|
|
},
|
|
"highlight": {
|
|
"editor.foreground": "#FFFFCE",
|
|
"editor.background": "#000000",
|
|
"editor.active_line.background": "#1e1e1e",
|
|
"editor.line_number": "#828282",
|
|
"editor.invisible": "#82828266",
|
|
"warning.border": "#720202",
|
|
"syntax": {
|
|
"attribute": {
|
|
"color": "#fecf75"
|
|
},
|
|
"boolean": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"comment": {
|
|
"color": "#828282"
|
|
},
|
|
"comment.doc": {
|
|
"color": "#828282"
|
|
},
|
|
"constant": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"constructor": {
|
|
"color": "#cb4a05"
|
|
},
|
|
"embedded": {
|
|
"color": "#dcdcdc"
|
|
},
|
|
"function": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"keyword": {
|
|
"color": "#cb4a05"
|
|
},
|
|
"link_text": {
|
|
"color": "#cda074",
|
|
"font_style": "normal"
|
|
},
|
|
"link_uri": {
|
|
"color": "#9e744d",
|
|
"font_style": "italic"
|
|
},
|
|
"number": {
|
|
"color": "#cb4a05"
|
|
},
|
|
"string": {
|
|
"color": "#cc734d"
|
|
},
|
|
"string.escape": {
|
|
"color": "#cc734d"
|
|
},
|
|
"string.regex": {
|
|
"color": "#cc734d"
|
|
},
|
|
"string.special": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"string.special.symbol": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"tag": {
|
|
"color": "#cb4a05"
|
|
},
|
|
"text.literal": {
|
|
"color": "#fd9f4d"
|
|
},
|
|
"title": {
|
|
"color": "#cda074",
|
|
"font_weight": 600
|
|
},
|
|
"type": {
|
|
"color": "#cda074"
|
|
},
|
|
"property": {
|
|
"color": "#dcdcdc"
|
|
},
|
|
"variable.special": {
|
|
"color": "#cb4a05"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|