Skip to content

Commit

Permalink
Merge gocui#170
Browse files Browse the repository at this point in the history
  • Loading branch information
Madison Scott-Clary committed Feb 2, 2019
2 parents 9a03130 + 00fd941 commit 285b36b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ func (g *Gui) flush() error {
fgColor = g.SelFgColor
bgColor = g.SelBgColor
} else {
fgColor = g.FgColor
bgColor = g.BgColor
fgColor = v.FrameFgColor
bgColor = v.FrameBgColor
}

if err := g.drawFrameEdges(v, fgColor, bgColor); err != nil {
Expand Down
4 changes: 4 additions & 0 deletions view.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ type View struct {
// foreground colors of the title of the view.
TitleBgColor, TitleFgColor Attribute

// BgColor and FgColor allow to configure the background and foreground
// colors of the Frame View.
FrameBgColor, FrameFgColor Attribute

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

0 comments on commit 285b36b

Please sign in to comment.