mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +08:00
Added Color getter
This commit is contained in:
parent
b373355e9d
commit
fc4f533e0b
@ -188,6 +188,11 @@ func (n *TreeNode) SetText(text string) *TreeNode {
|
||||
return n
|
||||
}
|
||||
|
||||
// Color returns the node's color.
|
||||
func (n *TreeNode) Color() tcell.Color {
|
||||
return n.color
|
||||
}
|
||||
|
||||
// SetColor sets the node's text color.
|
||||
func (n *TreeNode) SetColor(color tcell.Color) *TreeNode {
|
||||
n.color = color
|
||||
|
Loading…
x
Reference in New Issue
Block a user