Skip to content

Commit

Permalink
ui/theme/handler: Handle 'default' color property value separately
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhz committed Jul 14, 2024
1 parent e9c4450 commit bddd6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/theme/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func parseThemeSetting(setting string) (tcell.Style, string, error) {
default:
color = tcell.GetColor(name)
}
if color == 0 {
if color == 0 && name != "default" {
return tcell.Style{}, "", fmt.Errorf("Invalid color '%s'", name)
}

Expand Down

0 comments on commit bddd6fc

Please sign in to comment.