Skip to content

fix(picker): darken faint text on the selected picker row for contrast - #4796

Merged
max-sixty merged 1 commit into
mainfrom
fix/picker-selected-faint-contrast
Nov 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/picker-selected-faint-contrast

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

On the wt switch picker'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_FG in src/commands/picker/items.rs. The existing anchor_faint_under_selection tests 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

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
@max-sixty
max-sixty merged commit cf9708b into main Nov 15, 2026
36 checks passed
@max-sixty
max-sixty deleted the fix/picker-selected-faint-contrast branch November 15, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants