From bddd6fccf4e864c3e54a3ed994d347f8127bef21 Mon Sep 17 00:00:00 2001 From: darkhz Date: Sun, 14 Jul 2024 15:24:45 +0530 Subject: [PATCH] ui/theme/handler: Handle 'default' color property value separately --- ui/theme/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/theme/handler.go b/ui/theme/handler.go index ceeb4e5..e580ae8 100644 --- a/ui/theme/handler.go +++ b/ui/theme/handler.go @@ -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) }