Skip to content

Commit

Permalink
Merge pull request #247 from dgrr/master
Browse files Browse the repository at this point in the history
Added Color getter in TreeNode
  • Loading branch information
rivo committed Mar 10, 2019
2 parents d3efe1d + 1d0309e commit 3938f60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions treeview.go
Expand Up @@ -188,6 +188,11 @@ func (n *TreeNode) SetText(text string) *TreeNode {
return n
}

// GetColor returns the node's color.
func (n *TreeNode) GetColor() tcell.Color {
return n.color
}

// SetColor sets the node's text color.
func (n *TreeNode) SetColor(color tcell.Color) *TreeNode {
n.color = color
Expand Down

0 comments on commit 3938f60

Please sign in to comment.