fix(tui): inherit markdown foreground colors
Pass the active transcript foreground into retained Markdown renderables so unhighlighted fenced code remains visible on light terminal backgrounds. Update existing renderables during theme changes and cover the history hydration path that exposed the regression.
This commit is contained in:
1 parent
b66e61c16f
commit
ba9f40090f
2 files changed
+43
-2
No files matched your search
@@ -183,7 +183,10 @@ export class Transcript {
|
||||
message.displayContent,
|
||||
)
|
||||
}
|
||||
for (const renderable of this.markdown) renderable.syntaxStyle = theme.syntax
|
||||
for (const renderable of this.markdown) {
|
||||
renderable.fg = theme.text
|
||||
renderable.syntaxStyle = theme.syntax
|
||||
}
|
||||
for (const frame of this.frames) frame.borderColor = theme.border
|
||||
for (const row of this.userRows) {
|
||||
row.backgroundColor = theme.userBackground
|
||||
@@ -664,6 +667,7 @@ export class Transcript {
|
||||
minWidth: 0,
|
||||
flexGrow: 1,
|
||||
flexShrink: 1,
|
||||
fg: this.theme.text,
|
||||
syntaxStyle: this.theme.syntax,
|
||||
streaming,
|
||||
internalBlockMode: "top-level",
|
||||
|
||||
Reference in new issue
Block a user