From d05300d8490905303524c9ba7f6d2b32101eb117 Mon Sep 17 00:00:00 2001 From: Nicholas Eden Date: Wed, 26 Sep 2018 23:33:08 -0700 Subject: [PATCH] allow changing of title color --- wtf/text_widget.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wtf/text_widget.go b/wtf/text_widget.go index ca7077ef..9d4b714d 100644 --- a/wtf/text_widget.go +++ b/wtf/text_widget.go @@ -113,6 +113,13 @@ func (widget *TextWidget) addView(app *tview.Application, configKey string) { ), )) + view.SetTitleColor(colorFor( + Config.UString( + fmt.Sprintf("wtf.mods.%s.colors.title", configKey), + Config.UString("wtf.colors.title", "white"), + ), + )) + view.SetBorder(true) view.SetBorderColor(colorFor(widget.BorderColor())) view.SetChangedFunc(func() {