MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / applyResolvedAutoTheme

Method applyResolvedAutoTheme

apps/kimi-code/src/tui/kimi-tui.ts:2515–2525  ·  view source on GitHub ↗
(resolved: ResolvedTheme)

Source from the content-addressed store, hash-verified

2513 }
2514
2515 private async applyResolvedAutoTheme(resolved: ResolvedTheme): Promise<void> {
2516 if (this.state.appState.theme !== 'auto') return;
2517 const palette = getBuiltInPalette(resolved);
2518 if (currentTheme.palette === palette) return;
2519 currentTheme.setPalette(palette);
2520 this.updateEditorBorderHighlight();
2521 // Repaint already-rendered transcript entries (status/markdown caches hold
2522 // old ANSI codes), matching applyTheme()'s behaviour.
2523 this.state.transcriptContainer.invalidate();
2524 this.state.ui.requestRender(true);
2525 }
2526
2527 private shouldShowTerminalProgress(effectiveMode: EffectiveActivityPaneMode): boolean {
2528 if (this.state.appState.isCompacting) return true;

Callers 1

Calls 5

getBuiltInPaletteFunction · 0.90
setPaletteMethod · 0.80
invalidateMethod · 0.65
requestRenderMethod · 0.65

Tested by

no test coverage detected