diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/box.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ui/box.go b/lib/ui/box.go index 96b95d59..e13b70f3 100644 --- a/lib/ui/box.go +++ b/lib/ui/box.go @@ -45,6 +45,7 @@ func (b *Box) Draw(ctx *Context) { ctx.Printf(0, h-1, style, "%c%s%c", box[5], strings.Repeat(string(box[6]), w-2), box[7]) if b.title != "" && w > 4 { + style = b.uiConfig.GetStyle(config.STYLE_TITLE) title := runewidth.Truncate(b.title, w-4, "…") ctx.Printf(2, 0, style, "%s", title) } |