Repository navigation
Use gray and bright-white as the default dialog theme - #637
Conversation
|
I agree |
|
I agree we should change cyan-white color to another one. I think black and white have problem with terminal background color. Changing it will solve some problem but brings another problem. I think supporting NO_COLOR using almost no color by default is too much. I think using cyan-black is a good improvement with less impact/surprise of the change. Example of various terminals colors
|
I don't feel it's a big problem tbh. While it'd be better to have different colors between dialog and terminal background, using grey risks lowering contrast even further as shown in @tompng's example above. Since some theme gems are built with matching background too (e.g. irb-theme-tokyonight), I think this may be less of an issue to users?
I think Cyan is mostly used for highlighting. Since it's a light-ish color, using it as background hurts my eyes a bit too (not as bad as white would though). I also don't recall seeing any apps (terminal or not) using it as an UI's background (examples are welcome ofc)? So I don't think it's a good background color. Sorry for sounding like a hard-to-please person 😅 Let me share my priority list in terms of issues:
So for this reason, I still prefer black-and-white theme as it addresses the first 2 issues. |
|
Whichever color is chosen, it may be difficult to see due to the color set on the terminal emulator. I thought it would be more versatile to use a style rather than a fixed color. If you have difficulty seeing the currently selected line, you may set Only set
|
|
Every combination have a tradeoff, and default color should have less problem in various points of view.
I don't think cyan is the best background, but I propose cyan-black because it's
I'm also ok with any combination that satisfies these two constraints |
|
I think we want these conditions:
Considering it, I think possible color combinations are only few.
|
8fb38aa to
77489ff
Compare
|
I've adopted bright-white and gray combination and updated the screenshots 👍 |
I think this has a few benefits:
1. Most terminal themes generally don't change or pick similar colors
for their black and white colors, so it's more likely to be consistent
across terminals/themes.
2. They don't have the potential color-blind issues that other color options
may have.
3. We won't need additional changes for no color mode.
77489ff to
83fcc13
Compare
|
To me the bright color + white combination is not comfortable to look at and was the reason I dislike the default colors. So while I understand the appeal I still prefer black and white. |
ima1zumi
left a comment
There was a problem hiding this comment.
It's easy to read in various color schemes. 👍
hasumikin
left a comment
There was a problem hiding this comment.
When there are only two candidates, colored enhanced line is more clear which one is selected now.
I would rather give importance to this opinion👆
But it's not a super big problem. I'm fine if you three are OK with the monochrome scheme
|
How about we apply bold to the enhanced item as well? Screen.Recording.2024-02-19.at.11.22.05.mov(I also tried |
|
Ok, I'm merging and releasing this now. We can adjust the color/style further later if we received feedback on this. |
(ruby/reline#637) I think this has a few benefits: 1. Most terminal themes generally don't change or pick similar colors for their black and white colors, so it's more likely to be consistent across terminals/themes. 2. They don't have the potential color-blind issues that other color options may have. 3. We won't need additional changes for no color mode. ruby/reline@6579a0a737















I think this has a few benefits: