File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments