mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #730] Random background color #534
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#534
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 @lopqto on GitHub (May 6, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/730
Hey folks,
I'm developing an app that uses tview. To manage widgets, I used
Grids. There is a minor issue with setting the background color. No matter what I develop, it always selects some random color from the user's terminal.Terminator:

Alacrity:

I tried this one before, and it does nothing:
And sometimes, by opening another page, it goes crazy:

I use
SetRootto switch pages:How can I handle this background situation?
Thanks, everybody!
@rivo commented on GitHub (Jun 10, 2022):
Are you using
tcell.ColorDefaultsomewhere? (If you are, you shouldn't.)It's difficult to look into this without being able to reproduce this. Can you post some short code I can run which creates this effect?