mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 10:01:29 -07:00
ui(polish) blend background color with theme (#18802)
This commit is contained in:
@@ -54,18 +54,17 @@ export async function setupTerminalAndTheme(
|
||||
}
|
||||
|
||||
config.setTerminalBackground(terminalBackground);
|
||||
themeManager.setTerminalBackground(terminalBackground);
|
||||
|
||||
if (terminalBackground !== undefined) {
|
||||
const currentTheme = themeManager.getActiveTheme();
|
||||
if (currentTheme.type !== 'ansi' && currentTheme.type !== 'custom') {
|
||||
if (!themeManager.isThemeCompatible(currentTheme, terminalBackground)) {
|
||||
const backgroundType =
|
||||
getThemeTypeFromBackgroundColor(terminalBackground);
|
||||
if (backgroundType && currentTheme.type !== backgroundType) {
|
||||
coreEvents.emitFeedback(
|
||||
'warning',
|
||||
`Theme '${currentTheme.name}' (${currentTheme.type}) might look incorrect on your ${backgroundType} terminal background. Type /theme to change theme.`,
|
||||
);
|
||||
}
|
||||
coreEvents.emitFeedback(
|
||||
'warning',
|
||||
`Theme '${currentTheme.name}' (${currentTheme.type}) might look incorrect on your ${backgroundType} terminal background. Type /theme to change theme.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user