diff options
| author | Kamaal Farah <[email protected]> | 2025-11-08 23:27:07 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-08 16:27:07 -0600 |
| commit | 431ffc94f5b89d97a75d45a298714f32d060caed (patch) | |
| tree | 233e55db9a088afee4a03baac50d98fdc720dfdd | |
| parent | 47b4cc6d53d9382a222b5ef3819bc9a3a45a24f3 (diff) | |
| download | opencode-431ffc94f5b89d97a75d45a298714f32d060caed.tar.gz opencode-431ffc94f5b89d97a75d45a298714f32d060caed.zip | |
fix(theme): filter out null values from theme palette (#4083)
Signed-off-by: Kamaal Farah <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <[email protected]>
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/context/theme.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/context/theme.tsx b/packages/opencode/src/cli/cmd/tui/context/theme.tsx index e7967c2b5..74c2ff7f0 100644 --- a/packages/opencode/src/cli/cmd/tui/context/theme.tsx +++ b/packages/opencode/src/cli/cmd/tui/context/theme.tsx @@ -196,7 +196,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({ function generateSystem(colors: TerminalColors, mode: "dark" | "light"): ThemeJson { const bg = RGBA.fromHex(colors.defaultBackground ?? colors.palette[0]!) const fg = RGBA.fromHex(colors.defaultForeground ?? colors.palette[7]!) - const palette = colors.palette.map((x) => RGBA.fromHex(x!)) + const palette = colors.palette.filter((x) => x !== null).map((x) => RGBA.fromHex(x)) const isDark = mode == "dark" // Generate gray scale based on terminal background |
