Fixed semigraphics style in TreeView which ignored background color. Fixes #173

This commit is contained in:
Oliver 2018-10-27 13:43:14 +02:00
parent a7c1880d62
commit 028ad94730
1 changed files with 1 additions and 1 deletions

View File

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