-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Text is unreadable with Solarized Dark theme in iTerm2 because colors are similar to background #1743
Comments
Sorry about this; I think this has to do with macos's dark mode setting not informing terminal applications whether the background is light or dark. for reference, here's output on solarized dark in gnome-terminal: @mislav runs macos and will be of more help here, but I think until we come up with a better solution the workaround might be explicitly switching color schemes from light->dark from within iterm2? |
Is there a way to force the correct color scheme through |
@amingilani Thank you for reporting! I just tried to reproduce in iTerm2 with Solarized Dark, but could not. Do you have GLAMOUR_STYLE set in your environment variables by any chance? |
I just wanted to chime in that this isn't just an issue with dark themes; the gray text is very hard to read if you have a transparent terminal window as well. |
@amingilani @corytheboyd If GLAMOUR_STYLE variable isn't set, you can set it manually to either @LiteracyFanatic Good to know about gray not being readable! We hope to make the color palette configurable so that users with specific needs can customize the base set of colors. @ct-clearhaus Thank you for the workaround! |
GLAMOUR_STYLE makes sense to support as other CLI programs use glamour; however, it might be a good enhancement to expose a light/dark toggle via |
Thanks @mislav, I can confirm that setting Here's a workaround until the new release comes out. Copy the following lines in your
|
Just want to note that this occurs in vanilla macOS Terminal as well: The workaround posted at #1743 (comment) fixes it. By the way, thanks for fixing the issue where the colors wouldn't be cleaned up after running |
@blacksails Are you running a recent version of GitHub CLI? Does setting |
@mislav Running v0.12.0 output is the same when setting |
Should I create a new issue for Gnome terminal + gh cli + solarized colors? or maybe just gh cli + solarized, as this shouldn't really be a problem with the terminal emulator, but more a support issue with how the gray color is rendered, when using solarized. |
The problem is here https://github.com/cli/cli/blob/trunk/pkg/iostreams/color.go#L18 because the solarized theme uses bright green as gray. This line should be |
@blacksails Would you update to the latest version and try again? I'm pretty sure we fixed this issue in v1.0 back in September https://github.com/cli/cli/releases/tag/v1.0.0 |
@mislav sorry about the confusion, this has indeed been fixed. |
Thank you all for your input! Closing because we haven't got any reports of this being broken in the last 2 months. Our background color detection can still be broken when Terminal.app is used in macOS "Dark" mode. If you are affected by this, please refer to the workaround above. 🙇 |
Is there an issue tracking the macOS issue? It's unfortunate to require users to use a workaround. Is there any way the workaround could be integrated into |
I consider this to be a bug in Terminal.app in dark mode and not as something that we need or can fix from GitHub CLI. But you are right that potentially a lot of people can be affected by this, so I'm opening a new issue to track this, mainly to see how many upvotes it gets over time.
Well, we could in theory embed a |
Describe the bug
With iterm2's Solarized Dark theme, the current default theme is unreadable in commands like:
gh repo view
gh issue view
This is due to the fact that the dark text colors blend in with the background. See screenshots.
Steps to reproduce the behavior
Expected vs actual behavior
Readable output
Screenshots
The text was updated successfully, but these errors were encountered: