From a99957207cec227991ee804fc395372d12e76fc8 Mon Sep 17 00:00:00 2001 From: Rasmus Lindroth Date: Fri, 8 May 2020 16:36:47 +0200 Subject: [PATCH] parse hex colors correctly - cred @d5xtgr --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index cdbdd16..72d2b88 100644 --- a/util.go +++ b/util.go @@ -254,7 +254,7 @@ func ColorKey(style StyleConfig, pre, key, end string) string { } func ColorMark(color tcell.Color) string { - return fmt.Sprintf("[#%x]", color.Hex()) + return fmt.Sprintf("[#%06x]", color.Hex()) } func FormatUsername(a mastodon.Account) string {