[PR #13239] fix(tui): fix system theme contrast with transparency #14578

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

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

State: open
Merged: No


What does this PR do?

Fixes #12184

PR #8467 introduced background: transparent in the system theme to support terminal transparency. This breaks some parts of the system theme, especially visible on light themes.

Instead of setting the theme background to transparent, I added appBackground() which derives a transparent RGBA from the current background and uses it as the app root background for the system theme, preserving correct contrast.

Screenshots

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13239 **State:** open **Merged:** No --- ### What does this PR do? Fixes #12184 PR #8467 introduced `background: transparent` in the system theme to support terminal transparency. This breaks some parts of the system theme, especially visible on light themes. Instead of setting the theme background to transparent, I added `appBackground()` which derives a transparent RGBA from the current background and uses it as the app root background for the system theme, preserving correct contrast. ### Screenshots <img width="1509" height="941" alt="image" src="https://github.com/user-attachments/assets/598bd427-8103-4405-a0bc-36f6e9e1204a" />
yindo added the pull-request label 2026-02-16 18:19:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14578