Skip to content

fix(tui): use theme colors for text selection#13352

Open
akronb wants to merge 2 commits intoanomalyco:devfrom
akronb:fix-highlighting
Open

fix(tui): use theme colors for text selection#13352
akronb wants to merge 2 commits intoanomalyco:devfrom
akronb:fix-highlighting

Conversation

@akronb
Copy link
Contributor

@akronb akronb commented Feb 12, 2026

What does this PR do?

Fixes #5295
Fixes #6630

Fixes unreadable text selection highlights in light themes by introducing theme-aware selection tokens.

What’s changed

  • Added selectionBg and selectionFg to useTheme. The highlight background is now a subtle tint of the primary color, foreground uses theme.text.
  • Hooked up the new colors in chat and sidebar

How did you verify your code works?

fix_highlighting.mp4

@jmagder
Copy link

jmagder commented Feb 17, 2026

I tested this out locally, much better experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code Blocks Are Hard To Read When They Have Backgrounds Text selection has poor contrast/readability on light terminals with certain themes

2 participants

Comments