fix(chart-log, simple-appdash): align terminal and dashboard theming with brightness mode and improve app dashboard scroll presentation

This commit is contained in:
2026-04-03 13:33:56 +00:00
parent 77130ffb5e
commit f052fb9c9f
5 changed files with 98 additions and 9 deletions

View File

@@ -458,6 +458,9 @@ export class DeesChartLog extends DeesElement {
public updated(changedProperties: Map<string, any>) {
super.updated(changedProperties);
if (changedProperties.has('goBright') && this.terminal) {
this.terminal.options.theme = this.getTerminalTheme();
}
if (changedProperties.has('logEntries') && this.terminalReady && this.logEntries.length > 0) {
const oldEntries: ILogEntry[] = changedProperties.get('logEntries') || [];
const newEntries = this.logEntries;
@@ -504,7 +507,7 @@ export class DeesChartLog extends DeesElement {
}
private getTerminalTheme() {
const isDark = this.domtoolsInstance?.themeManager?.isDarkMode ?? true;
const isDark = !this.goBright;
return isDark
? {
background: '#0a0a0a',