mirror of
https://github.com/makew0rld/amfora.git
synced 2025-02-02 15:07:34 -05:00
Use TrueColor to force exact colors
This commit is contained in:
parent
27a041a746
commit
306213aab2
@ -74,7 +74,7 @@ func SetColor(key string, color tcell.Color) {
|
|||||||
func GetColor(key string) tcell.Color {
|
func GetColor(key string) tcell.Color {
|
||||||
themeMu.RLock()
|
themeMu.RLock()
|
||||||
defer themeMu.RUnlock()
|
defer themeMu.RUnlock()
|
||||||
return theme[key]
|
return theme[key].TrueColor()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetColorString returns a string that can be used in a cview color tag,
|
// 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 {
|
func GetColorString(key string) string {
|
||||||
themeMu.RLock()
|
themeMu.RLock()
|
||||||
defer themeMu.RUnlock()
|
defer themeMu.RUnlock()
|
||||||
return fmt.Sprintf("#%06x", theme[key].Hex())
|
return fmt.Sprintf("#%06x", theme[key].TrueColor().Hex())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user