[GH-ISSUE #576] transparent border background - tview.Styles.PrimitiveBackgroundColor #422

Closed
opened 2026-03-04 01:04:50 +03:00 by kerem · 4 comments
Owner

Originally created by @JCzz on GitHub (Mar 11, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/576

	tview.Styles.PrimitiveBackgroundColor = tcell.ColorBlue
	box := tview.NewBox().
		SetBorder(true).
		SetBorderColor(tcell.ColorRed).
		SetBorderAttributes(tcell.AttrBold).
		SetTitle("title")
	if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
		panic(err)
	}

The border background use to be the same color as "tview.Styles.PrimitiveBackgroundColor", now it is transparent?

image
Originally created by @JCzz on GitHub (Mar 11, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/576 ``` tview.Styles.PrimitiveBackgroundColor = tcell.ColorBlue box := tview.NewBox(). SetBorder(true). SetBorderColor(tcell.ColorRed). SetBorderAttributes(tcell.AttrBold). SetTitle("title") if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { panic(err) } ``` The border background use to be the same color as "tview.Styles.PrimitiveBackgroundColor", now it is transparent? <img width="71" alt="image" src="https://user-images.githubusercontent.com/1861398/110773316-e5446900-825c-11eb-9bb1-b94a0ab97842.png">
kerem closed this issue 2026-03-04 01:04:51 +03:00
Author
Owner

@joegrasse commented on GitHub (Mar 11, 2021):

This seems related to #575 and #521.

<!-- gh-comment-id:796747012 --> @joegrasse commented on GitHub (Mar 11, 2021): This seems related to #575 and #521.
Author
Owner

@rivo commented on GitHub (Mar 12, 2021):

Thanks. Please check out https://github.com/rivo/tview/issues/520#issuecomment-797659408 and let me know if the latest version resolves your issue.

<!-- gh-comment-id:797659881 --> @rivo commented on GitHub (Mar 12, 2021): Thanks. Please check out https://github.com/rivo/tview/issues/520#issuecomment-797659408 and let me know if the latest version resolves your issue.
Author
Owner

@mevdschee commented on GitHub (Mar 16, 2021):

I tried the code from this issue with the latest fixes:

image

@JCzz seems fixes to me.

<!-- gh-comment-id:800000989 --> @mevdschee commented on GitHub (Mar 16, 2021): I tried the code from this issue with the latest fixes: ![image](https://user-images.githubusercontent.com/1288217/111267174-e3e3b980-862b-11eb-93f9-902091af67d3.png) @JCzz seems fixes to me.
Author
Owner

@JCzz commented on GitHub (Mar 19, 2021):

Thanks, just verified - it works!

<!-- gh-comment-id:802889060 --> @JCzz commented on GitHub (Mar 19, 2021): Thanks, just verified - it works!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#422
No description provided.