[GH-ISSUE #877] border color doesn't seem to work for Modal primitive #639

Closed
opened 2026-03-04 01:06:40 +03:00 by kerem · 1 comment
Owner

Originally created by @justmeandopensource on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/877

Hi,
First of all thanks for this wonderful library.
I am trying to show a Modal dialog with the specified border color.

modal := tview.NewModal()
modal.SetText("Delete the transaction?")
modal.AddButtons([]string{"Yes", "No"})
modal.SetBackgroundColor(tcell.Color235)
modal.SetBorder(true)
modal.SetBorderColor(tview.Styles.SecondaryTextColor)

But the border is always white.
It works for other primitives though.

table := tview.Table()
table.SetBorderColor(tview.Styles.SecondaryTextColor)

It could be me not understanding the library better. Could someone please share some light on this?
Thanks

Originally created by @justmeandopensource on GitHub (Aug 31, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/877 Hi, First of all thanks for this wonderful library. I am trying to show a Modal dialog with the specified border color. ``` modal := tview.NewModal() modal.SetText("Delete the transaction?") modal.AddButtons([]string{"Yes", "No"}) modal.SetBackgroundColor(tcell.Color235) modal.SetBorder(true) modal.SetBorderColor(tview.Styles.SecondaryTextColor) ``` But the border is always white. It works for other primitives though. ``` table := tview.Table() table.SetBorderColor(tview.Styles.SecondaryTextColor) ``` It could be me not understanding the library better. Could someone please share some light on this? Thanks
kerem closed this issue 2026-03-04 01:06:40 +03:00
Author
Owner

@justmeandopensource commented on GitHub (Sep 1, 2023):

@digitallyserviced Thanks for the clarification. It now makes sense.

<!-- gh-comment-id:1703255840 --> @justmeandopensource commented on GitHub (Sep 1, 2023): @digitallyserviced Thanks for the clarification. It now makes sense.
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#639
No description provided.