-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
command/format: Render null in dark gray #19616
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable!
I like it not all being red, since I want to avoid any actual information being colorized to ensure that it'll remain readable on terminals with weirdly-configured color settings. Since the -> null
part is more of an "icon" than actual information it's not so much of a big deal if it's hard to actually read the text.
Oh, one thing we should check here: If a resource is being updated to set something that was previously set to That annotation being rendered in bold might be enough to avoid that, but if not then I think it's better to leave it uncolored so that we can reserve red text for more significant situations. |
Looking at this again with fresh eyes, I think that this makes the nulls a little too prominent in the output here, which risks distracting from other information we want to keep prominent, like whether something is going to be replaced. Since the (I'd include the |
963b8fa
to
498f52b
Compare
498f52b
to
e173744
Compare
e173744
to
86786ab
Compare
@apparentlymart Thanks for the feedback. Dark gray does look better in this context. See updated screenshot above. Are you happy for me to merge this? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I thought it would be even nicer to render the whole line as red, but then the whole
-> null
part becomes kinda redundant and I assume we want to keep it there for non-colorized outputs as minus signs alone might not be immediately obvious.Before
After