fix: handle 0 in ANSI theme color definitions (#5009)

This commit is contained in:
Jason Cheatham 2025-12-02 21:42:30 -07:00 committed by GitHub
parent 44cdde5422
commit f2fd0f8f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ function resolveTheme(theme: ThemeJson, mode: "dark" | "light") {
if (c.startsWith("#")) return RGBA.fromHex(c)
if (defs[c]) {
if (defs[c] != null) {
return resolveColor(defs[c])
} else if (theme.theme[c as keyof ThemeColors] !== undefined) {
return resolveColor(theme.theme[c as keyof ThemeColors]!)