diff options
author | Yuri D'Elia <wavexx@thregr.org> | 2020-07-13 13:27:09 +0200 |
---|---|---|
committer | Yuri D'Elia <wavexx@thregr.org> | 2020-07-13 13:30:46 +0200 |
commit | 9c3d25e776274c4a7050c2abffbebf8d74c44b6a (patch) | |
tree | 6af8c97f4a95d1f3d95573ae28533d0b698e5de0 | |
parent | f3304bdc1c215e733b9a2ee6a228e64f663c2b09 (diff) | |
download | git-bug-9c3d25e776274c4a7050c2abffbebf8d74c44b6a.tar.gz |
Set the Fg color of the status bar to White
Always set the Fg color when Bg is set. This fixes poor contrast on
terminals with non-standard foreground colors.
-rw-r--r-- | termui/bug_table.go | 1 | ||||
-rw-r--r-- | termui/label_select.go | 1 | ||||
-rw-r--r-- | termui/show_bug.go | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index e57a2b15..e2c1049f 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -116,6 +116,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error { } v.Frame = false + v.FgColor = gocui.ColorWhite v.BgColor = gocui.ColorBlue _, _ = fmt.Fprintf(v, "[q] Quit [s] Search [←↓↑→,hjkl] Navigation [↵] Open bug [n] New bug [i] Pull [o] Push") diff --git a/termui/label_select.go b/termui/label_select.go index 3208371d..db0486e4 100644 --- a/termui/label_select.go +++ b/termui/label_select.go @@ -144,6 +144,7 @@ func (ls *labelSelect) layout(g *gocui.Gui) error { return err } v.Frame = false + v.FgColor = gocui.ColorWhite v.BgColor = gocui.ColorBlue } v.Clear() diff --git a/termui/show_bug.go b/termui/show_bug.go index 83d40ffa..23b82c73 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -92,6 +92,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { sb.childViews = append(sb.childViews, showBugInstructionView) v.Frame = false + v.FgColor = gocui.ColorWhite v.BgColor = gocui.ColorBlue } |