aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-08 22:21:02 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-08 22:21:02 +0200
commit716b859f256b9745c6fbb79873e5402247010b87 (patch)
tree9b116bbaa78dda9763609f3f8f46e4caa75258a5
parentad9e35e302fe62556414f20ba04933d9c4597681 (diff)
downloadgit-bug-716b859f256b9745c6fbb79873e5402247010b87.tar.gz
termui: colors in the bug table
-rw-r--r--termui/bug_table.go9
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,
+ )
}
}