主题预设("我全都要"): - 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。
303 lines
8.7 KiB
JSON
303 lines
8.7 KiB
JSON
{
|
|
"$schema": "https://github.com/longbridge/gpui-kit/raw/refs/heads/main/.theme-schema.json",
|
|
"name": "Gruvbox",
|
|
"author": "Pavel Pertsev",
|
|
"url": "https://github.com/morhetz/gruvbox",
|
|
"themes": [
|
|
{
|
|
"name": "Gruvbox Light",
|
|
"mode": "light",
|
|
"colors": {
|
|
"accent.background": "#e6d19e",
|
|
"accent.foreground": "#3c3836",
|
|
"background": "#fbf1c7",
|
|
"border": "#d5c4a1",
|
|
"danger.background": "#fb4934",
|
|
"danger.active.background": "#cc241d",
|
|
"danger.foreground": "#fbf1c7",
|
|
"foreground": "#3c3836",
|
|
"input.border": "#d5c4a1",
|
|
"link.active.foreground": "#458588",
|
|
"link.foreground": "#458588",
|
|
"link.hover.foreground": "#458588",
|
|
"list.active.background": "#d7992122",
|
|
"list.hover.background": "#ebdbb2",
|
|
"list.active.border": "#d79921",
|
|
"list.even.background": "#f9ecba",
|
|
"muted.background": "#d5c4a166",
|
|
"muted.foreground": "#928374",
|
|
"panel.background": "#ebdbb2",
|
|
"popover.background": "#fbf1c7",
|
|
"popover.foreground": "#3c3836",
|
|
"primary.active.background": "#b7841f",
|
|
"primary.background": "#d79921",
|
|
"primary.foreground": "#fbf1c7",
|
|
"primary.hover.background": "#d79921ee",
|
|
"ring": "#d79921",
|
|
"scrollbar.background": "#fbf1c700",
|
|
"scrollbar.thumb.background": "#d5c4a1",
|
|
"secondary.background": "#EBDBB2",
|
|
"secondary.active.background": "#d5c4a1",
|
|
"secondary.foreground": "#3c3836",
|
|
"secondary.hover.background": "#e8d5a6",
|
|
"tab.active.background": "#fbf1c7",
|
|
"tab.active.foreground": "#3c3836",
|
|
"tab.background": "#ebdbb200",
|
|
"tab.foreground": "#928374",
|
|
"tab_bar.background": "#ebdbb2",
|
|
"title_bar.background": "#ebdbb2",
|
|
"title_bar.border": "#d5c4a1",
|
|
"base.magenta.light": "#D3869B66",
|
|
"base.red": "#fb4934",
|
|
"base.green": "#67a64f",
|
|
"base.yellow": "#b57614",
|
|
"base.blue": "#076678",
|
|
"base.magenta": "#8f3f71",
|
|
"base.cyan": "#427b58"
|
|
},
|
|
"highlight": {
|
|
"editor.foreground": "#3c3836",
|
|
"editor.background": "#fbf1c7",
|
|
"editor.active_line.background": "#ebdbb2",
|
|
"editor.line_number": "#928374",
|
|
"editor.active_line_number": "#3c3836",
|
|
"editor.invisible": "#92837466",
|
|
"conflict": "#cc241d",
|
|
"created": "#79740e",
|
|
"deleted": "#9d0006",
|
|
"error": "#cc241d",
|
|
"hidden": "#928374",
|
|
"hint": "#458588",
|
|
"ignored": "#928374",
|
|
"info": "#458588",
|
|
"modified": "#b57614",
|
|
"predictive": "#928374",
|
|
"renamed": "#b57614",
|
|
"success": "#79740e",
|
|
"unreachable": "#928374",
|
|
"warning": "#d79921",
|
|
"syntax": {
|
|
"attribute": {
|
|
"color": "#b57614"
|
|
},
|
|
"boolean": {
|
|
"color": "#d79921"
|
|
},
|
|
"comment": {
|
|
"color": "#928374",
|
|
"font_style": "italic"
|
|
},
|
|
"comment.doc": {
|
|
"color": "#928374",
|
|
"font_style": "italic"
|
|
},
|
|
"constant": {
|
|
"color": "#d79921"
|
|
},
|
|
"constructor": {
|
|
"color": "#b57614"
|
|
},
|
|
"embedded": {
|
|
"color": "#3c3836"
|
|
},
|
|
"function": {
|
|
"color": "#d79921"
|
|
},
|
|
"keyword": {
|
|
"color": "#cc241d"
|
|
},
|
|
"link_text": {
|
|
"color": "#458588",
|
|
"font_style": "normal"
|
|
},
|
|
"link_uri": {
|
|
"color": "#076678",
|
|
"font_style": "italic"
|
|
},
|
|
"number": {
|
|
"color": "#cc241d"
|
|
},
|
|
"string": {
|
|
"color": "#79740e"
|
|
},
|
|
"string.escape": {
|
|
"color": "#79740e"
|
|
},
|
|
"string.regex": {
|
|
"color": "#79740e"
|
|
},
|
|
"string.special": {
|
|
"color": "#d79921"
|
|
},
|
|
"string.special.symbol": {
|
|
"color": "#d79921"
|
|
},
|
|
"tag": {
|
|
"color": "#b57614"
|
|
},
|
|
"text.literal": {
|
|
"color": "#d79921"
|
|
},
|
|
"title": {
|
|
"color": "#b57614",
|
|
"font_weight": 600
|
|
},
|
|
"type": {
|
|
"color": "#b57614"
|
|
},
|
|
"property": {
|
|
"color": "#3c3836"
|
|
},
|
|
"variable.special": {
|
|
"color": "#cc241d"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Gruvbox Dark",
|
|
"mode": "dark",
|
|
"colors": {
|
|
"accent.background": "#303030",
|
|
"accent.foreground": "#ebdbb2",
|
|
"background": "#1d2021",
|
|
"border": "#3e3936",
|
|
"danger.active.background": "#fb4934",
|
|
"foreground": "#ebdbb2",
|
|
"input.border": "#504945",
|
|
"link.active.foreground": "#83a598",
|
|
"link.foreground": "#83a598",
|
|
"link.hover.foreground": "#83a598",
|
|
"list.active.background": "#d7992111",
|
|
"list.active.border": "#b17f1b",
|
|
"list.even.background": "#282828",
|
|
"muted.background": "#3c383655",
|
|
"muted.foreground": "#928374",
|
|
"panel.background": "#282828",
|
|
"popover.background": "#1d2021",
|
|
"popover.foreground": "#ebdbb2",
|
|
"primary.background": "#d79921",
|
|
"primary.foreground": "#282828",
|
|
"primary.hover.background": "#fabd2f",
|
|
"ring": "#b17f1b",
|
|
"scrollbar.background": "#1d202100",
|
|
"scrollbar.thumb.background": "#504945",
|
|
"secondary.active.background": "#333332",
|
|
"secondary.background": "#282828",
|
|
"secondary.foreground": "#ebdbb2",
|
|
"secondary.hover.background": "#33333299",
|
|
"tab.active.background": "#1d2021",
|
|
"tab.active.foreground": "#ebdbb2",
|
|
"tab.background": "#28282800",
|
|
"tab.foreground": "#928374",
|
|
"tab_bar.background": "#28282899",
|
|
"title_bar.background": "#252525",
|
|
"title_bar.border": "#3e3936",
|
|
"base.magenta.light": "#D3869B66",
|
|
"base.red": "#f06555",
|
|
"base.green": "#98971a",
|
|
"base.yellow": "#d79921",
|
|
"base.blue": "#458588",
|
|
"base.magenta": "#b16286",
|
|
"base.cyan": "#689d6a"
|
|
},
|
|
"highlight": {
|
|
"editor.foreground": "#DDDDDD",
|
|
"editor.background": "#1d2021",
|
|
"editor.active_line.background": "#131313",
|
|
"editor.line_number": "#8F8F8F",
|
|
"editor.active_line_number": "#DDDDDD",
|
|
"editor.invisible": "#92837466",
|
|
"conflict": "#f06555",
|
|
"created": "#3f72e2",
|
|
"deleted": "#9d0006",
|
|
"error": "#cc241d",
|
|
"hidden": "#9E9E9E",
|
|
"hint": "#b283f8",
|
|
"ignored": "#928374",
|
|
"info": "#458588",
|
|
"modified": "#B0A878",
|
|
"predictive": "#5D5945",
|
|
"renamed": "#b57614",
|
|
"success": "#79740e",
|
|
"unreachable": "#928374",
|
|
"warning": "#d79921",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|