refactor(cli): categorize built-in themes into dark/ and light/ directories (#18634)

This commit is contained in:
JAYADITYA
2026-03-05 14:50:46 +05:30
committed by GitHub
parent 3d4956aa57
commit 013d5dfbb0
24 changed files with 77 additions and 77 deletions

View File

@@ -23,7 +23,7 @@ vi.mock('../themes/theme-manager.js', () => ({
DEFAULT_THEME: { name: 'Default' },
}));
vi.mock('../themes/holiday.js', () => ({
vi.mock('../themes/builtin/dark/holiday-dark.js', () => ({
Holiday: { name: 'Holiday' },
}));

View File

@@ -8,7 +8,7 @@ import { useState, useEffect, useMemo } from 'react';
import { getAsciiArtWidth } from '../utils/textUtils.js';
import { debugState } from '../debug.js';
import { themeManager } from '../themes/theme-manager.js';
import { Holiday } from '../themes/holiday.js';
import { Holiday } from '../themes/builtin/dark/holiday-dark.js';
import { useUIState } from '../contexts/UIStateContext.js';
import { useTerminalSize } from './useTerminalSize.js';
import { shortAsciiLogo } from '../components/AsciiArt.js';

View File

@@ -65,7 +65,7 @@ vi.mock('../themes/theme-manager.js', async (importOriginal) => {
};
});
vi.mock('../themes/default-light.js', () => ({
vi.mock('../themes/builtin/light/default-light.js', () => ({
DefaultLight: { name: 'default-light' },
}));

View File

@@ -11,7 +11,7 @@ import {
shouldSwitchTheme,
} from '../themes/color-utils.js';
import { themeManager, DEFAULT_THEME } from '../themes/theme-manager.js';
import { DefaultLight } from '../themes/default-light.js';
import { DefaultLight } from '../themes/builtin/light/default-light.js';
import { useSettings } from '../contexts/SettingsContext.js';
import type { Config } from '@google/gemini-cli-core';
import { useTerminalContext } from '../contexts/TerminalContext.js';