summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPablo P Varela <[email protected]>2026-02-02 18:36:47 +0100
committerGitHub <[email protected]>2026-02-02 11:36:47 -0600
commit965f32ad634d208bbb34c5a9bb12e501a009378b (patch)
tree874d164e33e2c5a561822ef0ab65db0b86854c52
parentcf828fff85b50baf8c57cc3811c8789d9adbcae2 (diff)
downloadopencode-965f32ad634d208bbb34c5a9bb12e501a009378b.tar.gz
opencode-965f32ad634d208bbb34c5a9bb12e501a009378b.zip
fix(tui): respect terminal transparency in system theme (#8467)
-rw-r--r--packages/opencode/src/cli/cmd/tui/context/theme.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/context/theme.tsx b/packages/opencode/src/cli/cmd/tui/context/theme.tsx
index 7cde1b964..41c5a4a83 100644
--- a/packages/opencode/src/cli/cmd/tui/context/theme.tsx
+++ b/packages/opencode/src/cli/cmd/tui/context/theme.tsx
@@ -41,7 +41,6 @@ import { useRenderer } from "@opentui/solid"
import { createStore, produce } from "solid-js/store"
import { Global } from "@/global"
import { Filesystem } from "@/util/filesystem"
-import { useSDK } from "./sdk"
type ThemeColors = {
primary: RGBA
@@ -429,6 +428,7 @@ export function tint(base: RGBA, overlay: RGBA, alpha: number): RGBA {
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 transparent = RGBA.fromInts(0, 0, 0, 0)
const isDark = mode == "dark"
const col = (i: number) => {
@@ -479,8 +479,8 @@ function generateSystem(colors: TerminalColors, mode: "dark" | "light"): ThemeJs
textMuted,
selectedListItemText: bg,
- // Background colors
- background: bg,
+ // Background colors - use transparent to respect terminal transparency
+ background: transparent,
backgroundPanel: grays[2],
backgroundElement: grays[3],
backgroundMenu: grays[3],