Skip to content

Commit 285b36b

Browse files
author
Madison Scott-Clary
committed
Merge gocui#170
jroimartin/gocui#170
2 parents 9a03130 + 00fd941 commit 285b36b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ func (g *Gui) flush() error {
451451
fgColor = g.SelFgColor
452452
bgColor = g.SelBgColor
453453
} else {
454-
fgColor = g.FgColor
455-
bgColor = g.BgColor
454+
fgColor = v.FrameFgColor
455+
bgColor = v.FrameBgColor
456456
}
457457

458458
if err := g.drawFrameEdges(v, fgColor, bgColor); err != nil {

view.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ type View struct {
3737
// foreground colors of the title of the view.
3838
TitleBgColor, TitleFgColor Attribute
3939

40+
// BgColor and FgColor allow to configure the background and foreground
41+
// colors of the Frame View.
42+
FrameBgColor, FrameFgColor Attribute
43+
4044
// SelBgColor and SelFgColor are used to configure the background and
4145
// foreground colors of the selected line, when it is highlighted.
4246
SelBgColor, SelFgColor Attribute

0 commit comments

Comments
 (0)