diff options
| author | Jacob Richman <[email protected]> | 2025-08-15 20:18:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-16 03:18:31 +0000 |
| commit | 6c1373c33212e26521701acf73c0398721b3a881 (patch) | |
| tree | 6a00fb90c90b51a0c8285b21af7b174064ab6492 /packages/cli/src/ui/App.tsx | |
| parent | d57cc0b9306f0359482ef6e243308bcda2989007 (diff) | |
Revert "Update semantic color tokens" (#6365)
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index ca391e83..9773971b 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -38,7 +38,7 @@ import { EditorSettingsDialog } from './components/EditorSettingsDialog.js'; import { FolderTrustDialog } from './components/FolderTrustDialog.js'; import { ShellConfirmationDialog } from './components/ShellConfirmationDialog.js'; import { RadioButtonSelect } from './components/shared/RadioButtonSelect.js'; -import { theme } from './semantic-colors.js'; +import { Colors } from './colors.js'; import { loadHierarchicalGeminiMemory } from '../config/config.js'; import { LoadedSettings, SettingScope } from '../config/settings.js'; import { Tips } from './components/Tips.js'; @@ -949,13 +949,13 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { {startupWarnings.length > 0 && ( <Box borderStyle="round" - borderColor={theme.status.warning} + borderColor={Colors.AccentYellow} paddingX={1} marginY={1} flexDirection="column" > {startupWarnings.map((warning, index) => ( - <Text key={index} color={theme.status.warning}> + <Text key={index} color={Colors.AccentYellow}> {warning} </Text> ))} @@ -991,7 +991,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { <Box flexDirection="column"> {themeError && ( <Box marginBottom={1}> - <Text color={theme.status.error}>{themeError}</Text> + <Text color={Colors.AccentRed}>{themeError}</Text> </Box> )} <ThemeDialog @@ -1050,7 +1050,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { <Box flexDirection="column"> {editorError && ( <Box marginBottom={1}> - <Text color={theme.status.error}>{editorError}</Text> + <Text color={Colors.AccentRed}>{editorError}</Text> </Box> )} <EditorSettingsDialog @@ -1090,20 +1090,18 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { > <Box> {process.env.GEMINI_SYSTEM_MD && ( - <Text color={theme.status.error}>|⌐■_■| </Text> + <Text color={Colors.AccentRed}>|⌐■_■| </Text> )} {ctrlCPressedOnce ? ( - <Text color={theme.status.warning}> + <Text color={Colors.AccentYellow}> Press Ctrl+C again to exit. </Text> ) : ctrlDPressedOnce ? ( - <Text color={theme.status.warning}> + <Text color={Colors.AccentYellow}> Press Ctrl+D again to exit. </Text> ) : showEscapePrompt ? ( - <Text color={theme.text.secondary}> - Press Esc again to clear. - </Text> + <Text color={Colors.Gray}>Press Esc again to clear.</Text> ) : ( <ContextSummaryDisplay ideContext={ideContextState} @@ -1166,7 +1164,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { {initError && streamingState !== StreamingState.Responding && ( <Box borderStyle="round" - borderColor={theme.status.error} + borderColor={Colors.AccentRed} paddingX={1} marginBottom={1} > @@ -1174,7 +1172,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { (item) => item.type === 'error' && item.text?.includes(initError), )?.text ? ( - <Text color={theme.status.error}> + <Text color={Colors.AccentRed}> { history.find( (item) => @@ -1184,10 +1182,10 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { </Text> ) : ( <> - <Text color={theme.status.error}> + <Text color={Colors.AccentRed}> Initialization Error: {initError} </Text> - <Text color={theme.status.error}> + <Text color={Colors.AccentRed}> {' '} Please check API key and configuration. </Text> |
