mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 22:05:53 +03:00
[GH-ISSUE #1045] No way to set selected color on TreeView #754
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#754
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 @SamWhited on GitHub (Oct 25, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1045
With the list view you can set the color of the selected list item with
SetSelectedTextColor,SetSelectedBackgroundColorandSetSelectedStyle. However, on tree views there is no similar styling, the selected node always swaps the foreground and background color.I would like to propose adding similar methods to the tree view so that when using a treeview and a list view in the same UI there can be some consistency between the selector.
@rivo commented on GitHub (Nov 3, 2024):
The latest commit adds
SetTextStyle()andSetSelectedTextStyle()toTreeView.