Skip to content

Commit

Permalink
GetColorString now returns proper value for resetting the cview tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcDevnagh committed Jun 20, 2021
1 parent 36963f1 commit 4b8beab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,9 @@ func GetColor(key string) tcell.Color {
func GetColorString(key string) string {
themeMu.RLock()
defer themeMu.RUnlock()
return fmt.Sprintf("#%06x", theme[key].TrueColor().Hex())
color := theme[key].TrueColor()
if color == tcell.ColorDefault {
return "-"
}
return fmt.Sprintf("#%06x", color.Hex())
}

0 comments on commit 4b8beab

Please sign in to comment.