Theming the (git) diff view #36087
Replies: 5 comments 2 replies
-
|
Hey I believe these are the settings you're looking for. Just make sure to add a theme override for the light and the dark theme! {
"theme_overrides": {
"Ayu Dark": {
"created": "#62c755",
"created.background": "<editor_bg_color>",
"created.border": "#62c755",
"deleted": "#ec6a5e",
"deleted.background": "<editor_bg_color>",
"deleted.border": "#ec6a5e",
"modified": "#f5bf4f",
"modified.background": "<editor_bg_color>",
"modified.border": "#f5bf4f"
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Nope, unfortunately none of these have any impact on the git diff view (the one that opens when opening a file in git panel). At least not for me. I think those keys are for mainly edit predictions / auto-complete. I am not sure whether theming the git diff view is already supported... @JosephTLyons can I bother you with this? |
Beta Was this translation helpful? Give feedback.
-
|
Then I guess it's a bug... As you can see, created/deleted/modified/conflict.background has no impact on the background of the lines, but changing the comments to italic works. Screen.Recording.2025-08-28.at.4.20.19.PM.movTried to
... nothing helped... I'm on Zed version v0.201.5 |
Beta Was this translation helpful? Give feedback.
-
|
Resorted to using I doesn't really solve my problem of the background of the lines being dim, as Zed still "dims down" any color used, which is quite annoying, but I guess it is what it is for the time being. This happens both in light and dark mode, but the problem is much more prominent in dark mode. I wish they had added proper |
Beta Was this translation helpful? Give feedback.
-
|
AFAICT, diffs in Zed only actually ever reference the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use the Ayu Dark theme and like it in general. However, the git diff view uses extremely low contrast colors which are barely recognizable.
What I would like to do is override the colors in the settings:
My problem is I cannot find the right theme key for the colors used in the diff view panel, the editable view that opens when you click a file in the Git panel.
Does anyone know which keys in the theme control the colors for new/changed/deleted lines in the diff view? Are those colors themable at all?
Beta Was this translation helpful? Give feedback.
All reactions