From 716b859f256b9745c6fbb79873e5402247010b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Wed, 8 Aug 2018 22:21:02 +0200 Subject: [PATCH] termui: colors in the bug table --- termui/bug_table.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/termui/bug_table.go b/termui/bug_table.go index fc5e6aa19034133f567999a0ce72a74b76b4f3d1..354570af1a5f098e8bef9195aecaecd47fa706cb 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, + ) } }