[PR #4670] Fix highlight contrast for custom transparent themes #11059

Closed
opened 2026-02-16 18:15:50 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: No


Summary

Fix text contrast when highlighted selections are drawn on transparent/custom backgrounds.

Changes

  • Add invert-based highlight helpers for text and textMuted.
  • Apply them across highlighted UI (autocomplete rows, dialog buttons, agent badge, MIME badges, paste extmarks).

Testing

  • Not run (local environment only).

Result

Invert the color when it's highlighted
image

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4670 **State:** closed **Merged:** No --- ## Summary Fix text contrast when highlighted selections are drawn on transparent/custom backgrounds. ## Changes - Add invert-based highlight helpers for text and textMuted. - Apply them across highlighted UI (autocomplete rows, dialog buttons, agent badge, MIME badges, paste extmarks). ## Testing - Not run (local environment only). ## Result Invert the color when it's highlighted <img width="658" height="216" alt="image" src="https://github.com/user-attachments/assets/6c54405a-53f0-4ee2-b129-41cf621619d8" />
yindo added the pull-request label 2026-02-16 18:15:50 -05:00
yindo closed this issue 2026-02-16 18:15:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11059