mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #720] Feature Request: Demo file for colors #526
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#526
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 @marioemmanuel on GitHub (Apr 13, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/720
It would be useful to find a working example on changing Colors under the demo folder, for example how to change the background color of a form.
@rivo commented on GitHub (Apr 15, 2022):
You can call
SetBackgroundColor()on any primitive, including forms. (Be aware, though, that this function returns aBox, not aForm, so you probably shouldn't chain it.)@marioemmanuel commented on GitHub (Apr 16, 2022):
In case it helps someone else, aside from rivo's comment, I also found the presentation demo files helpful to understand how colors are used in tview.