mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 01:12:15 +00:00
fix: handle 0 in ANSI theme color definitions (#5009)
This commit is contained in:
parent
44cdde5422
commit
f2fd0f8f00
1 changed files with 1 additions and 1 deletions
|
|
@ -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]!)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue