From 00fd941d7095db6c972a91895775e6223486a0af Mon Sep 17 00:00:00 2001 From: Alexander Skovpen Date: Sat, 18 Aug 2018 12:48:55 +0300 Subject: [PATCH] added colors to frame --- gui.go | 4 ++-- view.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gui.go b/gui.go index 9499d3c..968f88e 100644 --- a/gui.go +++ b/gui.go @@ -443,8 +443,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 { diff --git a/view.go b/view.go index 42082f8..27ae623 100644 --- a/view.go +++ b/view.go @@ -33,6 +33,10 @@ type View struct { // colors of the View. BgColor, FgColor 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