Skip to content

fix(ui): restore log search option selection highlight#3005

Open
sjuxax wants to merge 3 commits into
gitui-org:masterfrom
sjuxax:fix/log-search-selection-highlight
Open

fix(ui): restore log search option selection highlight#3005
sjuxax wants to merge 3 commits into
gitui-org:masterfrom
sjuxax:fix/log-search-selection-highlight

Conversation

@sjuxax

@sjuxax sjuxax commented Jul 21, 2026

Copy link
Copy Markdown

Fixes #3004 .

Option rows used theme.text(focused, false), which only dimmed non-focused lines and never applied selection_bg.

Use theme.text(true, selected) for option focus, refresh textarea style/cursor on enabled(), and keep jump-to-SHA field focused (invalid SHA still uses block danger styling).

This code was written by Grok 4.5.

Followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

sjuxax added 3 commits July 20, 2026 19:30
Option rows used theme.text(focused, false), which only dimmed
non-focused lines and never applied selection_bg. TextInputComponent::enabled
also stopped updating textarea styles after the tui-textarea migration, so the
cursor stayed visible when navigating checkboxes.

Use theme.text(true, selected) for option focus, refresh textarea style/cursor
on enabled(), and keep jump-to-SHA field focused (invalid SHA still uses block
danger styling).
Satisfies clippy::missing_const_for_fn under nursery.
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.

Search options no longer highlight as cursor moves.

1 participant