From 492d582ad613835a4a98d5c413d8661fb5e7e8cb Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Thu, 15 Mar 2018 12:21:09 -0700 Subject: [PATCH] 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. --- label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label.go b/label.go index 77b46da..ee05496 100644 --- a/label.go +++ b/label.go @@ -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 {