-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color issues #87
Comments
Hi @elbaro, there was another user having issues with alacritty recently. Is this relevant to your problem? #79 (comment) |
Also, can you confirm that the 24bit color tests linked in the README are passing for you? https://github.com/dandavison/delta#24-bit-color |
I tried out-of-box iTerm2 on Mac and Kitty on Linux, and the same problem happenes. The 24-bit color test works fine. |
OK, can you explain a bit more what the problem is exactly? In the screen shot above, it looks like you are using a light theme, but have a dark terminal background. Normally one would only use a light theme with a light terminal background. Sorry if I'm being slow! What exactly is the problem that the screenshot illustrates? |
Are you saying that to reproduce the screenshot in README.md, one has to use the terminal with #FFFFFF background? In the screenshot, the fonts in the red line is invisible. Can we have Also this may be a separate issue, but I am seeing a different behavior depending on the color: |
Yes, that's right, delta only applies the red and green background colors to convey diff information: it doesn't apply a "default" background color to all the text it emits. (Actually the screenshot is with iTerm2 "Material" theme which is some sort of pearl / off-white background).
That could be possible. Am I right in thinking that this feature does not exist in bat and that it would be equally appropriate there?
Can you post some raw output from git diff that is resulting in this behavior? (I.e. as text, not as a screenshot). |
In both terminals, Here is delta: The red line's foreground color is different (include
|
Thank you! I can reproduce this; will look into it. |
@elbaro the color overrun bug you reported ( |
Perhaps relevant to the other issues mentioned in here, I've merged a few branches in the last week that I believe improve the ways colors are handled internally, and improve the CLI for specifying colors. So to summarize what delta does and does not do (without any implication as to whether these are bugs or features!):
All color command line options can be specified either as explicit 24-bit RGBs, or as one of the 256 ANSI codes (see The following text is now printed out at the end of the
|
Alacritty 0.4.0, delta 0.0.15
All light themes are broken.
Somehow
--minus-color=xx
does not set to xx, but adds xx.--minus-color="#000000"
shows minus diffs with no color.The text was updated successfully, but these errors were encountered: