mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #282] Table Selection Inverts Cell Border Color #219
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#219
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 @DuckDuckWhale on GitHub (May 18, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/282
After pasting code from Table Wiki, the enter key to select a cell inverts the cell border color as well as the content color.
Screenshot from Wiki
Screenshot
@rivo commented on GitHub (Jun 2, 2019):
Good catch. The screenshot was still from a very old version of the
Tableclass. It should match the demo now.@DuckDuckWhale commented on GitHub (Jun 3, 2019):
Okay, so inverting the color of the cell border is actually intended. What's the reasoning behind this though? Personally I actually think it looks nicer not to invert the cell border color. Is there any way to do that using the API?
@rivo commented on GitHub (Jun 9, 2019):
You can select multiple rows or multiple columns. In those cases also, the highlight must run across cell borders. (Anything else would look weird; I tested that.) Personally, I don't like having borders highlighted in some places and not in others so this is what I ended up with. Apart from rolling your own selection functionality (using
GetInputCapture()and colour tags), there's currently no way to turn this off.@DuckDuckWhale commented on GitHub (Jun 12, 2019):
Fair enough.