aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-27 13:35:06 +0200
committerGitHub <noreply@github.com>2020-09-27 13:35:06 +0200
commitae0529e3f54eb7bd3b464e2717c82db975fb88c9 (patch)
tree4acf22518cd20d91136b9cc940a1bb22d4763958 /termui
parent0198ad71d793edbebf6c7ee02243d86879fb0e45 (diff)
parent999e61224c1efe49496d6d84ba255544e74c524a (diff)
downloadgit-bug-ae0529e3f54eb7bd3b464e2717c82db975fb88c9.tar.gz
Merge pull request #457 from zdenek-crha/bright_terminal_readability
Bright terminal readability
Diffstat (limited to 'termui')
-rw-r--r--termui/help_bar.go4
-rw-r--r--termui/show_bug.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/termui/help_bar.go b/termui/help_bar.go
index 78f8ebca..9fc7c152 100644
--- a/termui/help_bar.go
+++ b/termui/help_bar.go
@@ -17,13 +17,13 @@ type helpBar []struct {
func (hb helpBar) Render(maxX int) string {
var builder strings.Builder
for _, entry := range hb {
- builder.WriteString(colors.BlueBg(fmt.Sprintf("[%s] %s", entry.keys, entry.text)))
+ builder.WriteString(colors.White(colors.BlueBg(fmt.Sprintf("[%s] %s", entry.keys, entry.text))))
builder.WriteByte(' ')
}
l := text.Len(builder.String())
if l < maxX {
- builder.WriteString(colors.BlueBg(strings.Repeat(" ", maxX-l)))
+ builder.WriteString(colors.White(colors.BlueBg(strings.Repeat(" ", maxX-l))))
}
return builder.String()
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 6296c445..0710fa34 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -378,7 +378,7 @@ func (sb *showBug) renderMain(g *gocui.Gui, mainView *gocui.View) error {
// emptyMessagePlaceholder return a formatted placeholder for an empty message
func emptyMessagePlaceholder() string {
- return colors.GreyBold("No description provided.")
+ return colors.BlackBold(colors.WhiteBg("No description provided."))
}
func (sb *showBug) createOpView(g *gocui.Gui, name string, x0 int, y0 int, maxX int, height int, selectable bool) (*gocui.View, error) {