You've already forked gpui-component
mirror of
https://github.com/librekeys/gpui-component.git
synced 2026-04-14 08:46:29 -07:00
## Description This adds `.show_whitespace` and `.set_show_whitespace` to the `InputState` to control whether or not to render spaces and tabs. I've also updated all the themes with the new `editor.invisible` color, this is the `comment` color with added opacity. ## Screenshot <img width="823" height="661" alt="Screenshot From 2026-01-29 14-04-52" src="https://github.com/user-attachments/assets/2f79f081-83bd-47ea-922c-01b9f22262cf" /> <img width="795" height="118" alt="Screenshot From 2026-01-29 14-05-14" src="https://github.com/user-attachments/assets/b8e22080-a88e-44b7-abd8-4c8100b1a972" /> ## How to Test `cargo run --release --example editor` Click on the "Show whitespace" button in the footer. ## Checklist - [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and followed the guidelines. - [x] Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate. - [x] Passed `cargo run` for story tests related to the changes. - [x] Tested macOS, ~~Windows~~ and Linux platforms performance (if the change is platform-specific) --------- Co-authored-by: Jason Lee <huacnlee@gmail.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
159 lines
4.5 KiB
JSON
159 lines
4.5 KiB
JSON
{
|
|
"$schema": "https://github.com/longbridge/gpui-component/raw/refs/heads/main/.theme-schema.json",
|
|
"name": "Matrix",
|
|
"author": "iruzo",
|
|
"url": "https://github.com/iruzo/matrix-nvim",
|
|
"themes": [
|
|
{
|
|
"name": "Matrix",
|
|
"mode": "dark",
|
|
"radius": 0,
|
|
"radius.lg": 0,
|
|
"colors": {
|
|
"accent.background": "#002d00",
|
|
"accent.foreground": "#00FF00",
|
|
"background": "#020D02",
|
|
"border": "#12410E",
|
|
"window_border": "#156B12",
|
|
"ring": "#00FF00",
|
|
"danger.background": "#FF0000",
|
|
"danger.active.background": "#FF0000",
|
|
"danger.foreground": "#0D0208",
|
|
"danger.hover.background": "#FF0000",
|
|
"foreground": "#88FF88",
|
|
"input.border": "#003200",
|
|
"link.active.foreground": "#00FF00",
|
|
"link.foreground": "#00FF00",
|
|
"link.hover.foreground": "#00FF00",
|
|
"list.active.background": "#00FF0011",
|
|
"list.active.border": "#00FF00",
|
|
"list.even.background": "#00190066",
|
|
"muted.background": "#001900",
|
|
"muted.foreground": "#007700",
|
|
"panel.background": "#001900",
|
|
"popover.background": "#020D02",
|
|
"popover.foreground": "#00FF00",
|
|
"primary.active.background": "#00FF0099",
|
|
"primary.background": "#00FF00",
|
|
"primary.foreground": "#0D0208",
|
|
"primary.hover.background": "#00FF00AA",
|
|
"scrollbar.background": "#0D020800",
|
|
"scrollbar.thumb.background": "#003d00",
|
|
"secondary.active.background": "#001B00",
|
|
"secondary.background": "#002900",
|
|
"secondary.foreground": "#3fd43a",
|
|
"secondary.hover.background": "#003300",
|
|
"tab.active.foreground": "#00FF00",
|
|
"tab.background": "#0D020800",
|
|
"tab.foreground": "#88FF88",
|
|
"title_bar.background": "#020d02",
|
|
"title_bar.border": "#12410E",
|
|
"base.red": "#FF0000",
|
|
"base.green": "#00FF00",
|
|
"base.yellow": "#ffea00",
|
|
"base.blue": "#0000ff",
|
|
"base.magenta": "#FF00FF",
|
|
"base.cyan": "#00ffd5"
|
|
},
|
|
"highlight": {
|
|
"editor.foreground": "#88FF88",
|
|
"editor.background": "#020d02",
|
|
"editor.active_line.background": "#001900",
|
|
"editor.line_number": "#007700",
|
|
"editor.active_line_number": "#00FF00",
|
|
"editor.invisible": "#00770066",
|
|
"conflict": "#FF0000",
|
|
"created": "#82d967",
|
|
"deleted": "#FF0000",
|
|
"error": "#FF0000",
|
|
"hidden": "#007700",
|
|
"hint": "#3fd43a",
|
|
"ignored": "#007700",
|
|
"info": "#3fd43a",
|
|
"modified": "#82d967",
|
|
"predictive": "#007700",
|
|
"renamed": "#82d967",
|
|
"success": "#82d967",
|
|
"unreachable": "#007700",
|
|
"warning": "#ffd700",
|
|
"syntax": {
|
|
"attribute": {
|
|
"color": "#82d967"
|
|
},
|
|
"boolean": {
|
|
"color": "#ffd700"
|
|
},
|
|
"comment": {
|
|
"color": "#007700",
|
|
"font_style": "italic"
|
|
},
|
|
"comment.doc": {
|
|
"color": "#007700",
|
|
"font_style": "italic"
|
|
},
|
|
"constant": {
|
|
"color": "#ffd700"
|
|
},
|
|
"constructor": {
|
|
"color": "#82d967"
|
|
},
|
|
"embedded": {
|
|
"color": "#88FF88"
|
|
},
|
|
"function": {
|
|
"color": "#ffd700"
|
|
},
|
|
"keyword": {
|
|
"color": "#FF0000"
|
|
},
|
|
"link_text": {
|
|
"color": "#3fd43a",
|
|
"font_style": "normal"
|
|
},
|
|
"link_uri": {
|
|
"color": "#00FF00",
|
|
"font_style": "italic"
|
|
},
|
|
"number": {
|
|
"color": "#FF0000"
|
|
},
|
|
"string": {
|
|
"color": "#82d967"
|
|
},
|
|
"string.escape": {
|
|
"color": "#82d967"
|
|
},
|
|
"string.regex": {
|
|
"color": "#82d967"
|
|
},
|
|
"string.special": {
|
|
"color": "#ffd700"
|
|
},
|
|
"string.special.symbol": {
|
|
"color": "#ffd700"
|
|
},
|
|
"tag": {
|
|
"color": "#82d967"
|
|
},
|
|
"text.literal": {
|
|
"color": "#ffd700"
|
|
},
|
|
"title": {
|
|
"color": "#82d967",
|
|
"font_weight": 600
|
|
},
|
|
"type": {
|
|
"color": "#82d967"
|
|
},
|
|
"property": {
|
|
"color": "#88FF88"
|
|
},
|
|
"variable.special": {
|
|
"color": "#FF0000"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|