aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri D'Elia <wavexx@thregr.org>2020-07-13 13:27:09 +0200
committerYuri D'Elia <wavexx@thregr.org>2020-07-13 13:30:46 +0200
commit9c3d25e776274c4a7050c2abffbebf8d74c44b6a (patch)
tree6af8c97f4a95d1f3d95573ae28533d0b698e5de0
parentf3304bdc1c215e733b9a2ee6a228e64f663c2b09 (diff)
downloadgit-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.go1
-rw-r--r--termui/label_select.go1
-rw-r--r--termui/show_bug.go1
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
}