Skip to content

fix(tui): fix system theme contrast with transparency#13239

Closed
akronb wants to merge 17 commits intoanomalyco:devfrom
akronb:fix-transparency
Closed

fix(tui): fix system theme contrast with transparency#13239
akronb wants to merge 17 commits intoanomalyco:devfrom
akronb:fix-transparency

Conversation

@akronb
Copy link
Copy Markdown
Contributor

@akronb akronb commented Feb 12, 2026

What does this PR do?

Fixes #12184
Fixes #13363

PR #8467 set background: transparent for the system theme to support terminal transparency. This caused rendering and contrast issues in parts of the UI, especially on light themes.

This PR makes only the app background transparent, ensuring that all other uses of theme.background remain readable. It also adds a createEffect hook with renderer.setBackgroundColor to fix the alpha blending issue.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@graelo
Copy link
Copy Markdown

graelo commented Mar 16, 2026

I used these changes on top of dev and on my side the PR would help me too with transparency and background color.

@kommander
Copy link
Copy Markdown
Collaborator

@akronb is this what you mentioned on opentui as well and would this be fixed with opentui improvement?

@akronb
Copy link
Copy Markdown
Contributor Author

akronb commented Mar 20, 2026

@kommander nope, that’s a different issue. It fixes visual bugs after background in the system theme was set to transparent.

The issue for the opentui thing is #13363. I checked it out, and it needs a small hook check to trigger a background re-render in the app root container.

@akronb
Copy link
Copy Markdown
Contributor Author

akronb commented Mar 24, 2026

Fixed in opencode v1.3.1

@akronb akronb closed this Mar 24, 2026
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.

System theme makes dialogs/overlays look black on light terminals System theme broken with light color schemes

3 participants