termui: colors in the bug table

This commit is contained in:
Michael Muré 2018-08-08 22:21:02 +02:00
parent ad9e35e302
commit 716b859f25
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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,
)
}
}