1
0
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:
dgrr 2019-03-07 05:58:50 -05:00
parent b373355e9d
commit fc4f533e0b

View File

@ -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