mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(cli): resolve post-rebase build errors in theme dialog and tests
This commit is contained in:
@@ -281,10 +281,6 @@ export function ThemeDialog({
|
||||
const codeBlockHeight = Math.ceil(availableHeightForPanes * 0.6);
|
||||
const diffHeight = Math.floor(availableHeightForPanes * 0.4);
|
||||
|
||||
const previewTheme =
|
||||
themeManager.getTheme(highlightedThemeName || DEFAULT_THEME.name) ||
|
||||
DEFAULT_THEME;
|
||||
|
||||
return (
|
||||
<Box
|
||||
borderStyle="round"
|
||||
@@ -425,7 +421,9 @@ def fibonacci(n):
|
||||
return a`,
|
||||
language: 'python',
|
||||
availableHeight:
|
||||
isAlternateBuffer === false ? codeBlockHeight : undefined,
|
||||
isAlternateBuffer === false
|
||||
? codeBlockHeight
|
||||
: undefined,
|
||||
maxWidth: colorizeCodeWidth,
|
||||
settings,
|
||||
theme: previewTheme,
|
||||
|
||||
@@ -199,7 +199,7 @@ describe('useTerminalTheme', () => {
|
||||
config.setTerminalBackground('#000000');
|
||||
vi.mocked(config.setTerminalBackground).mockClear();
|
||||
// But theme is light
|
||||
mockSettings.merged.ui.theme = 'default-light';
|
||||
mockSettings.merged.ui.themeLight = 'default-light';
|
||||
|
||||
const refreshStatic = vi.fn();
|
||||
const { unmount } = renderHook(() =>
|
||||
@@ -220,7 +220,7 @@ describe('useTerminalTheme', () => {
|
||||
expect.anything(),
|
||||
);
|
||||
|
||||
mockSettings.merged.ui.theme = 'default';
|
||||
mockSettings.merged.ui.themeDark = 'default';
|
||||
unmount();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user