Skip to content

Commit 00fd941

Browse files
committed
added colors to frame
1 parent c055c87 commit 00fd941

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
@@ -443,8 +443,8 @@ func (g *Gui) flush() error {
443443
fgColor = g.SelFgColor
444444
bgColor = g.SelBgColor
445445
} else {
446-
fgColor = g.FgColor
447-
bgColor = g.BgColor
446+
fgColor = v.FrameFgColor
447+
bgColor = v.FrameBgColor
448448
}
449449

450450
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
@@ -33,6 +33,10 @@ type View struct {
3333
// colors of the View.
3434
BgColor, FgColor Attribute
3535

36+
// BgColor and FgColor allow to configure the background and foreground
37+
// colors of the Frame View.
38+
FrameBgColor, FrameFgColor Attribute
39+
3640
// SelBgColor and SelFgColor are used to configure the background and
3741
// foreground colors of the selected line, when it is highlighted.
3842
SelBgColor, SelFgColor Attribute

0 commit comments

Comments
 (0)