Files
mqttx/gpui-app/themes/solarized.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

292 lines
8.3 KiB
JSON

{
"$schema": "https://github.com/longbridge/gpui-kit/raw/refs/heads/main/.theme-schema.json",
"name": "Solarized",
"author": "Ethan Schoonover",
"url": "https://ethanschoonover.com/solarized",
"themes": [
{
"name": "Solarized Light",
"mode": "light",
"colors": {
"accent.background": "#ebe4ce",
"accent.foreground": "#073642",
"background": "#FDF6E3",
"border": "#DCD4BC",
"foreground": "#586E75",
"input.border": "#DCD4BC",
"link.foreground": "#587573",
"list.active.background": "#586E75",
"list.active.border": "#586E75",
"list.even.background": "#EEE8D599",
"muted.background": "#eee8d5",
"muted.foreground": "#93a1a1",
"panel.background": "#fdf6e3",
"popover.background": "#fdf6e3",
"popover.foreground": "#073642",
"primary.background": "#586E75",
"primary.foreground": "#fdf6e3",
"scrollbar.background": "#EEE8D500",
"scrollbar.thumb.background": "#d5cbaf",
"secondary.background": "#EEE8D5",
"secondary.active.background": "#DCD4BC",
"secondary.foreground": "#073642",
"secondary.hover.background": "#DCD4BC88",
"tab.active.background": "#fdf6e3",
"tab.active.foreground": "#073642",
"tab.background": "#fdf6e300",
"tab.foreground": "#657b83",
"tab_bar.background": "#eee8d5",
"title_bar.background": "#f4ecd7",
"title_bar.border": "#dcd4bc",
"chart.grid": "#ebe5d4",
"base.red": "#755858",
"base.green": "#717558",
"base.yellow": "#756e58",
"base.blue": "#586975",
"base.magenta": "#755866",
"base.cyan": "#587573"
},
"highlight": {
"editor.foreground": "#586E75",
"editor.background": "#FDF6E3",
"editor.active_line.background": "#EEE8D5",
"editor.line_number": "#93A1A1",
"editor.active_line_number": "#073642",
"editor.invisible": "#93A1A166",
"conflict": "#DC322F",
"created": "#859900",
"deleted": "#DC322F",
"error": "#DC322F",
"hidden": "#93A1A1",
"hint": "#2AA198",
"ignored": "#93A1A1",
"info": "#268BD2",
"modified": "#B58900",
"predictive": "#586E75",
"renamed": "#2AA198",
"success": "#859900",
"unreachable": "#DC322F",
"warning": "#B58900",
"syntax": {
"attribute": {
"color": "#B58900"
},
"boolean": {
"color": "#CB4B16"
},
"comment": {
"color": "#93A1A1",
"font_style": "italic"
},
"comment.doc": {
"color": "#93A1A1",
"font_style": "italic"
},
"constant": {
"color": "#268BD2"
},
"constructor": {
"color": "#859900"
},
"embedded": {
"color": "#2AA198"
},
"function": {
"color": "#268BD2"
},
"keyword": {
"color": "#DC322F"
},
"link_text": {
"color": "#268BD2",
"font_style": "underline"
},
"link_uri": {
"color": "#2AA198",
"font_style": "italic"
},
"number": {
"color": "#D33682"
},
"string": {
"color": "#859900"
},
"string.escape": {
"color": "#2AA198"
},
"string.regex": {
"color": "#D33682"
},
"string.special": {
"color": "#B58900"
},
"string.special.symbol": {
"color": "#B58900"
},
"tag": {
"color": "#268BD2"
},
"text.literal": {
"color": "#586E75"
},
"title": {
"color": "#073642",
"font_weight": 600
},
"type": {
"color": "#2AA198"
},
"property": {
"color": "#586E75"
},
"variable.special": {
"color": "#DC322F"
}
}
}
},
{
"name": "Solarized Dark",
"author": "Ethan Schoonover",
"url": "https://ethanschoonover.com/solarized",
"mode": "dark",
"colors": {
"accent.background": "#073945",
"accent.foreground": "#fdf6e3",
"background": "#002B36",
"border": "#103a44",
"foreground": "#fdf6e3",
"input.border": "#083e4c",
"list.active.background": "#0d667d25",
"list.active.border": "#0d667d",
"list.even.background": "#15333A99",
"muted.background": "#073642",
"muted.foreground": "#839496",
"panel.background": "#002b36",
"popover.background": "#002b36",
"popover.foreground": "#fdf6e3",
"primary.background": "#0d667d",
"primary.foreground": "#fdf6e3",
"scrollbar.background": "#002b3600",
"scrollbar.thumb.background": "#586e75",
"secondary.background": "#073642",
"secondary.active.background": "#083e4b",
"secondary.foreground": "#fdf6e3",
"secondary.hover.background": "#073945",
"tab.active.background": "#002b36",
"tab.active.foreground": "#fdf6e3",
"tab.foreground": "#93a1a1",
"tab_bar.background": "#07364266",
"title_bar.background": "#09323d",
"title_bar.border": "#16404b",
"base.red": "#7d2f0d",
"base.green": "#0d7d3f",
"base.yellow": "#7d650d",
"base.blue": "#0d507d",
"base.magenta": "#7d0d43",
"base.cyan": "#0d7d70"
},
"highlight": {
"editor.foreground": "#DDDDDD",
"editor.background": "#002B36",
"editor.active_line.background": "#073642",
"editor.line_number": "#8F8F8F",
"editor.active_line_number": "#DDDDDD",
"editor.invisible": "#93A1A166",
"conflict": "#D2602D",
"created": "#3f72e2",
"created.background": "#0C4619",
"deleted.background": "#46190C",
"error.background": "#46190C",
"error.border": "#802207",
"hidden": "#9E9E9E",
"hint": "#b283f8",
"hint.background": "#250c4b",
"hint.border": "#3f0891",
"info.background": "#0C194D",
"info.border": "#082190",
"modified": "#B0A878",
"modified.background": "#3A310E",
"predictive": "#5D5945",
"success.background": "#0C4619",
"warning.background": "#3A310E",
"warning.border": "#7B6508",
"syntax": {
"attribute": {
"color": "#be9a52"
},
"boolean": {
"color": "#E1D797"
},
"comment": {
"color": "#9E9E9E"
},
"comment.doc": {
"color": "#9E9E9E"
},
"constant": {
"color": "#E1D797"
},
"constructor": {
"color": "#b5af9a"
},
"embedded": {
"color": "#CACCCA"
},
"function": {
"color": "#E1D797"
},
"keyword": {
"color": "#E19773"
},
"link_text": {
"color": "#A86D3B",
"font_style": "normal"
},
"link_uri": {
"color": "#6F6D66",
"font_style": "italic"
},
"number": {
"color": "#E19773"
},
"string": {
"color": "#76BA53"
},
"string.escape": {
"color": "#76BA53"
},
"string.regex": {
"color": "#76BA53"
},
"string.special": {
"color": "#E1D797"
},
"string.special.symbol": {
"color": "#E1D797"
},
"tag": {
"color": "#b5af9a"
},
"text.literal": {
"color": "#E1D797"
},
"title": {
"color": "#A76D3B",
"font_weight": 600
},
"type": {
"color": "#A86D3B"
},
"property": {
"color": "#CACCCA"
},
"variable.special": {
"color": "#E19773"
}
}
}
}
]
}