feat(cli): implement automatic theme switching based on terminal background (#17976)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Abhijit Balaji
2026-02-02 16:39:17 -08:00
committed by GitHub
parent f57fd642df
commit 4e4a55be35
18 changed files with 807 additions and 93 deletions
@@ -63,6 +63,14 @@ class ThemeManager {
this.activeTheme = DEFAULT_THEME;
}
isDefaultTheme(themeName: string | undefined): boolean {
return (
themeName === undefined ||
themeName === DEFAULT_THEME.name ||
themeName === DefaultLight.name
);
}
/**
* Loads custom themes from settings.
* @param customThemesSettings Custom themes from settings.