Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit e225294

Browse files
authored
Fix: unreadable texts in light mode (anomalyco#4301)
1 parent a673e36 commit e225294

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ ToolRegistry.register<typeof WriteTool>({
12531253
<For each={numbers()}>{(value) => <text style={{ fg: theme.textMuted }}>{value}</text>}</For>
12541254
</box>
12551255
<box paddingLeft={1} flexGrow={1}>
1256-
<code filetype={filetype(props.input.filePath!)} syntaxStyle={syntax()} content={code()} />
1256+
<code fg={theme.text} filetype={filetype(props.input.filePath!)} syntaxStyle={syntax()} content={code()} />
12571257
</box>
12581258
</box>
12591259
<Show when={diagnostics().length}>
@@ -1463,16 +1463,16 @@ ToolRegistry.register<typeof EditTool>({
14631463
<Match when={diff() && style() === "split"}>
14641464
<box paddingLeft={1} flexDirection="row" gap={2}>
14651465
<box flexGrow={1} flexBasis={0}>
1466-
<code filetype={ft()} syntaxStyle={syntax()} content={diff()!.oldContent} />
1466+
<code fg={theme.text} filetype={ft()} syntaxStyle={syntax()} content={diff()!.oldContent} />
14671467
</box>
14681468
<box flexGrow={1} flexBasis={0}>
1469-
<code filetype={ft()} syntaxStyle={syntax()} content={diff()!.newContent} />
1469+
<code fg={theme.text} filetype={ft()} syntaxStyle={syntax()} content={diff()!.newContent} />
14701470
</box>
14711471
</box>
14721472
</Match>
14731473
<Match when={code()}>
14741474
<box paddingLeft={1}>
1475-
<code filetype={ft()} syntaxStyle={syntax()} content={code()} />
1475+
<code fg={theme.text} filetype={ft()} syntaxStyle={syntax()} content={code()} />
14761476
</box>
14771477
</Match>
14781478
</Switch>

packages/opencode/src/cli/cmd/tui/ui/toast.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export function Toast() {
3131
customBorderChars={SplitBorder.customBorderChars}
3232
>
3333
<Show when={current().title}>
34-
<text attributes={TextAttributes.BOLD} marginBottom={1}>
34+
<text attributes={TextAttributes.BOLD} marginBottom={1} fg={theme.text}>
3535
{current().title}
3636
</text>
3737
</Show>
38-
<text>{current().message}</text>
38+
<text fg={theme.text}>{current().message}</text>
3939
</box>
4040
)}
4141
</Show>

0 commit comments

Comments
 (0)