forked from tslocum/cview
Fixed semigraphics style in TreeView which ignored background color. Fixes #173
This commit is contained in:
parent
a7c1880d62
commit
028ad94730
|
@ -569,7 +569,7 @@ func (t *TreeView) Draw(screen tcell.Screen) {
|
|||
|
||||
// Draw the tree.
|
||||
posY := y
|
||||
lineStyle := tcell.StyleDefault.Foreground(t.graphicsColor)
|
||||
lineStyle := tcell.StyleDefault.Background(t.backgroundColor).Foreground(t.graphicsColor)
|
||||
for index, node := range t.nodes {
|
||||
// Skip invisible parts.
|
||||
if posY >= y+height+1 {
|
||||
|
|
Loading…
Reference in New Issue