diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-08 22:21:02 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-08 22:21:02 +0200 |
commit | 716b859f256b9745c6fbb79873e5402247010b87 (patch) | |
tree | 9b116bbaa78dda9763609f3f8f46e4caa75258a5 /termui | |
parent | ad9e35e302fe62556414f20ba04933d9c4597681 (diff) | |
download | git-bug-716b859f256b9745c6fbb79873e5402247010b87.tar.gz |
termui: colors in the bug table
Diffstat (limited to 'termui')
-rw-r--r-- | termui/bug_table.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index fc5e6aa1..354570af 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -276,7 +276,14 @@ func (bt *bugTable) render(v *gocui.View, maxX int) { summary := util.LeftPaddedString(snap.Summary(), columnWidths["summary"], 2) lastEdit := util.LeftPaddedString(humanize.Time(snap.LastEdit()), columnWidths["lastEdit"], 2) - fmt.Fprintf(v, "%s %s %s %s %s %s\n", id, status, title, author, summary, lastEdit) + fmt.Fprintf(v, "%s %s %s %s %s %s\n", + util.Cyan(id), + util.Yellow(status), + title, + util.Magenta(author), + summary, + lastEdit, + ) } } |