feat(coding-agent): add automatic theme mode (#5874)

This commit is contained in:
Armin Ronacher
2026-06-18 17:13:47 +02:00
committed by GitHub
parent 908be616f2
commit d0b46764b1
16 changed files with 620 additions and 80 deletions

View File

@@ -714,8 +714,15 @@ export class SettingsManager {
this.save();
}
getThemeSetting(): string | undefined {
const value = this.settings.theme;
if (typeof value === "string") return value;
return undefined;
}
getTheme(): string | undefined {
return this.settings.theme;
const theme = this.getThemeSetting();
return theme?.includes("/") ? undefined : theme;
}
setTheme(theme: string): void {