label: multiline

Currently when a label is multiline Draw() will paint it with black/while
foreground/background colors.

This patch makes sure we keep theme consistent across the single line and
multiline use cases.
This commit is contained in:
Leandro Dorileo 2018-03-15 12:21:09 -07:00
parent 4d8b1ae09a
commit 492d582ad6

View File

@ -84,7 +84,7 @@ func (l *Label) Draw() {
}
if l.multiline {
parser := NewColorParser(l.title, ColorWhite, ColorBlack)
parser := NewColorParser(l.title, fg, bg)
elem := parser.NextElement()
xx, yy := l.x, l.y
for elem.Type != ElemEndOfText {