mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
feat(cli): implement automatic theme switching based on terminal background (#17976)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user