1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

Use TrueColor to force exact colors

This commit is contained in:
makeworld 2020-12-28 15:59:18 -05:00
parent 27a041a746
commit 306213aab2

View File

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