diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-27 13:35:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 13:35:06 +0200 |
commit | ae0529e3f54eb7bd3b464e2717c82db975fb88c9 (patch) | |
tree | 4acf22518cd20d91136b9cc940a1bb22d4763958 /termui/help_bar.go | |
parent | 0198ad71d793edbebf6c7ee02243d86879fb0e45 (diff) | |
parent | 999e61224c1efe49496d6d84ba255544e74c524a (diff) | |
download | git-bug-ae0529e3f54eb7bd3b464e2717c82db975fb88c9.tar.gz |
Merge pull request #457 from zdenek-crha/bright_terminal_readability
Bright terminal readability
Diffstat (limited to 'termui/help_bar.go')
-rw-r--r-- | termui/help_bar.go | 4 |
1 files changed, 2 insertions, 2 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() |