fix(ui): theme stateful light surfaces

This commit is contained in:
codeman-local
2026-07-25 15:28:04 +08:00
parent dae82388ed
commit a842b091bf
4 changed files with 149 additions and 119 deletions
+4
View File
@@ -2863,6 +2863,10 @@ Object.assign(CodemanApp.prototype, {
if (this.terminal) {
this.terminal.options.minimumContrastRatio = minimumContrastRatio;
this.terminal.options.theme = theme;
// The zero-lag typing overlay caches the xterm foreground/background.
// Refresh it on live skin changes so typed text never keeps the prior
// theme's dark backing surface or foreground color.
this._localEchoOverlay?.refreshFont();
try {
this.terminal.refresh(0, this.terminal.rows - 1);
} catch {}