From 306213aab29b3d21a5d1a1ee8febea38a8de2820 Mon Sep 17 00:00:00 2001 From: makeworld Date: Mon, 28 Dec 2020 15:59:18 -0500 Subject: [PATCH] Use TrueColor to force exact colors --- config/theme.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/theme.go b/config/theme.go index 13f5cd2..12a6412 100644 --- a/config/theme.go +++ b/config/theme.go @@ -74,7 +74,7 @@ func SetColor(key string, color tcell.Color) { func GetColor(key string) tcell.Color { themeMu.RLock() defer themeMu.RUnlock() - return theme[key] + return theme[key].TrueColor() } // GetColorString returns a string that can be used in a cview color tag, @@ -83,5 +83,5 @@ func GetColor(key string) tcell.Color { func GetColorString(key string) string { themeMu.RLock() defer themeMu.RUnlock() - return fmt.Sprintf("#%06x", theme[key].Hex()) + return fmt.Sprintf("#%06x", theme[key].TrueColor().Hex()) }