mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #478] [MERGED] fix(renderer): respect alpha channel for transparent background #566
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#566
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/478
Author: @Stranmor
Created: 1/6/2026
Status: ✅ Merged
Merged: 1/8/2026
Merged by: @kommander
Base:
main← Head:fix/transparent-background-alpha-check📝 Commits (1)
bc8c91afix(renderer): respect alpha channel for transparent background📊 Changes
1 file changed (+9 additions, -4 deletions)
View changed files
📝
packages/core/src/renderer.ts(+9 -4)📄 Description
Summary
"background": "none"Problem
When
backgroundColorhasalpha = 0(transparent), the renderer was still callingANSI.setRgbBackground(), which overrides the terminal's native transparency settings with a solid color (typically black).Solution
Added a simple alpha check before setting RGB background:
Test plan
"background": { "dark": "none", "light": "none" }Tested with:
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.