Skip to content

Commit 9a03130

Browse files
author
Madison Scott-Clary
committed
Merge gocui#145
jroimartin/gocui#145
2 parents bc24e2a + d7810d0 commit 9a03130

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

gui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func (g *Gui) flush() error {
462462
return err
463463
}
464464
if v.Title != "" {
465-
if err := g.drawTitle(v, fgColor, bgColor); err != nil {
465+
if err := g.drawTitle(v, v.TitleFgColor, v.TitleBgColor); err != nil {
466466
return err
467467
}
468468
}

view.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ type View struct {
3232
// BgColor and FgColor allow to configure the background and foreground
3333
// colors of the View.
3434
BgColor, FgColor Attribute
35+
36+
// TitleBgColor and TitleFgColor allow to configure the background and
37+
// foreground colors of the title of the view.
38+
TitleBgColor, TitleFgColor Attribute
3539

3640
// SelBgColor and SelFgColor are used to configure the background and
3741
// foreground colors of the selected line, when it is highlighted.

0 commit comments

Comments
 (0)