[PR #8467] fix(tui): respect terminal transparency in system theme #12752

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

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

State: closed
Merged: Yes


What does this PR do?

Set system theme background to transparent (RGBA with alpha=0) to allow terminal transparency settings (e.g., Ghostty background-opacity) to show through. Dialog panels and UI elements remain opaque with terminal-derived colors for readability.

Fixes #4027

The issue being open for so long and the fix being so simple makes me think I'm not aware of some other issue this may cause 🤔. I've checked https://github.com/anomalyco/opencode/issues/4369 but it's not an issue on my PR (see screenshots below)

How did you verify your code works?

$ bun run dev

Before/After

CleanShot 2026-01-14 at 15 14 20
CleanShot 2026-01-14 at 15 15 08
CleanShot 2026-01-14 at 15 15 36
CleanShot 2026-01-14 at 15 16 16
CleanShot 2026-01-14 at 15 44 38

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8467 **State:** closed **Merged:** Yes --- ### What does this PR do? Set system theme background to transparent (RGBA with alpha=0) to allow terminal transparency settings (e.g., Ghostty background-opacity) to show through. Dialog panels and UI elements remain opaque with terminal-derived colors for readability. Fixes #4027 The issue being open for so long and the fix being so simple makes me think I'm not aware of some other issue this may cause 🤔. I've checked https://github.com/anomalyco/opencode/issues/4369 but it's not an issue on my PR (see screenshots below) ### How did you verify your code works? ```shell $ bun run dev ``` #### Before/After ![CleanShot 2026-01-14 at 15 14 20](https://github.com/user-attachments/assets/1decd1d5-bf4d-42d6-b643-7a2f8e276d1b) ![CleanShot 2026-01-14 at 15 15 08](https://github.com/user-attachments/assets/4b30342f-78c6-4cb2-9f5d-be64ea2224bc) ![CleanShot 2026-01-14 at 15 15 36](https://github.com/user-attachments/assets/e09a2b42-88c7-483e-8146-dce32a77c348) ![CleanShot 2026-01-14 at 15 16 16](https://github.com/user-attachments/assets/c4cac3ff-354e-4b0e-afa0-ef0de8d08c6d) ![CleanShot 2026-01-14 at 15 44 38](https://github.com/user-attachments/assets/40440bdb-bcbf-4d7a-80d3-aa36d7aec3cd)
yindo added the pull-request label 2026-02-16 18:17:38 -05:00
yindo closed this issue 2026-02-16 18:17:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12752