mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #575] Colors not being set/being "unset" #420
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#420
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 @mimadrone on GitHub (Mar 6, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/575
Probably connected to #519 and #520, I'm seeing a whole slew of issues since I updated tcell and tview around colors. The code is pretty involved, but the gist is:
I'm attaching comparison screenshots showing 1) the map 2) a textbox and form and 3) a modal.






@mimadrone commented on GitHub (Mar 7, 2021):
Addendum: having poked around a little, I suspect the actual issue here is that tcell.Color is now uint64 instead of int32 with the tcell v2 conversion and that something is not handling that well. However, since this affects unmodified tview types, I'm going to continue to consider this a tview bug.
@joegrasse commented on GitHub (Mar 8, 2021):
Looks like issue #521 might be related as well.
@rivo commented on GitHub (Mar 12, 2021):
It seems that the default colour in
tcellhas a different meaning now. (I believe it used to be "transparent", i.e. "don't change", whereas now it means "the default background colour".) I can definitely reproduce the issue with the borders but I'm having trouble with your other two points:How do you style the buttons? I tried to set all kinds of colours on the button example in the repo but couldn't reproduce the issue seen in your screenshots. Can you post maybe post some code?
How do you draw these tiles? Do you use any method from
tviewor do you draw usingtcell'sScreenmethods directly?@rivo commented on GitHub (Mar 12, 2021):
Actually, could you please upgrade to the latest
tviewversion and let me know if it resolves your issue?(Refer to https://github.com/rivo/tview/issues/520#issuecomment-797659408 for details.)
@mimadrone commented on GitHub (Mar 15, 2021):
Upgrading fixed it, yes!
(I suspect the reason you didn't see it repro, FTR, had to do with the fact that I'm using Pages. A standalone Modal did seem to work normally when I messed with it.)