Repository navigation
fix(picker): darken faint text on the selected picker row for contrast - #4796
Merged
Merged
Conversation
Faint (integrated / same-commit) rows drew their text in gray 245 on the selected row's 251 bar, about 2:1 contrast, which is hard to read on dark themes where the bright bar stands out. Use gray 240 instead, about 4.2:1, still lighter than the row's 237 text. Refs #1264
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the
wt switchpicker's selected row, faint text (branches already integrated into the default branch, or at the same commit) is now drawn in gray 240 (#585858) instead of 245 (#8a8a8a). Against the 251 selection bar (#c6c6c6), contrast goes from about 2.0:1 to about 4.2:1. It's still lighter than the row's normal 237 text, so integrated rows still read as de-emphasized. This is the interim fix @disrupted asked for in #1264. On dark themes the bright bar stands out, and dimmed branch names on it were hard to read.The change is a single constant,
SELECTED_FAINT_FGinsrc/commands/picker/items.rs. The existinganchor_faint_under_selectiontests reference the constant and pass (cargo test --bins picker::items). No snapshot pins the old value.This leaves the bar itself unchanged: it is still a fixed light gray rather than a theme-relative color. Whether to rethink it is the open question on #1264.
Refs #1264