1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

allow changing of title color

This commit is contained in:
Nicholas Eden 2018-09-26 23:33:08 -07:00
parent c717cecff9
commit d05300d849

View File

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