mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #35] TableCell is not honoring Styles.PrimitiveBackgroundColor #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#26
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?
Originally created by @dpotapov on GitHub (Jan 18, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/35
Hi,
Table cells are displayed with black background color by default. I think they should honor

Styles.PrimitiveBackgroundColorsetting.@rivo commented on GitHub (Jan 19, 2018):
The nil value of
tcell.Coloris black. So since I introduced individual cell background colors, if you don't want to specify the background color for all cells, you now have to use theNewTableCell()constructor instead of instancing theTableCelltype directly. The constructor will set the background color totcell.ColorDefaultwhich is transparent and the text color toStyles.PrimaryTextColor.See also the documentation here.
@dpotapov commented on GitHub (Jan 19, 2018):
@rivo would it make sense to call the cell constructor from
SetCellSimple()method?@rivo commented on GitHub (Jan 20, 2018):
Definitely! This was an oversight. Thanks for the hint. It's fixed now.
@dpotapov commented on GitHub (Jan 20, 2018):
Great! thanks a lot!