[PR #13352] fix(tui): use theme colors for text selection #14628

Open
opened 2026-02-16 18:19:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13352

State: open
Merged: No


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?

https://github.com/user-attachments/assets/5b5f9d35-421a-4b78-ba56-7654cc01b1fc

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13352 **State:** open **Merged:** No --- ### 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? https://github.com/user-attachments/assets/5b5f9d35-421a-4b78-ba56-7654cc01b1fc
yindo added the pull-request label 2026-02-16 18:19:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14628