mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
feat(ui): use primary color for /colors summary and remove background row gaps
This commit is contained in:
@@ -134,35 +134,33 @@ export const ColorsDisplay: React.FC = () => {
|
|||||||
<Text bold color={theme.text.accent}>
|
<Text bold color={theme.text.accent}>
|
||||||
/colors - Theme Colors Demo
|
/colors - Theme Colors Demo
|
||||||
</Text>
|
</Text>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
The purpose of this feature is to visualize how colors are used in the
|
The purpose of this feature is to visualize how colors are used in the
|
||||||
app, test across a variety of Terminals (Mac Terminal, Ghostty,
|
app, test across a variety of Terminals (Mac Terminal, Ghostty,
|
||||||
iTerm2, VSCode, etc), and see how the colors change across different
|
iTerm2, VSCode, etc), and see how the colors change across different
|
||||||
themes.
|
themes.
|
||||||
</Text>
|
</Text>
|
||||||
<Box marginTop={1} flexDirection="column">
|
<Box marginTop={1} flexDirection="column">
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
<Text bold color={theme.text.primary}>
|
<Text bold>How themes and terminals interact:</Text>
|
||||||
How themes and terminals interact:
|
|
||||||
</Text>
|
|
||||||
</Text>
|
</Text>
|
||||||
<Box marginLeft={2} flexDirection="column">
|
<Box marginLeft={2} flexDirection="column">
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
• <Text bold>TrueColor (Hex):</Text> Modern terminals (iTerm2,
|
• <Text bold>TrueColor (Hex):</Text> Modern terminals (iTerm2,
|
||||||
Ghostty, VSCode) render hex codes exactly. They are{' '}
|
Ghostty, VSCode) render hex codes exactly. They are{' '}
|
||||||
<Text italic>not</Text> overridden by terminal app themes.
|
<Text italic>not</Text> overridden by terminal app themes.
|
||||||
</Text>
|
</Text>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
• <Text bold>ANSI Names:</Text> Colors like 'red' or
|
• <Text bold>ANSI Names:</Text> Colors like 'red' or
|
||||||
'green' (used in our ANSI theme) <Text italic>are</Text>{' '}
|
'green' (used in our ANSI theme) <Text italic>are</Text>{' '}
|
||||||
mapped to your terminal app's specific palette.
|
mapped to your terminal app's specific palette.
|
||||||
</Text>
|
</Text>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
• <Text bold>Default colors:</Text> When Name or Value is
|
• <Text bold>Default colors:</Text> When Name or Value is
|
||||||
'(blank)', the app uses your terminal's default
|
'(blank)', the app uses your terminal's default
|
||||||
foreground/background.
|
foreground/background.
|
||||||
</Text>
|
</Text>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
• <Text bold>Compatibility:</Text> In terminals with limited color
|
• <Text bold>Compatibility:</Text> In terminals with limited color
|
||||||
(like older Mac Terminals), hex colors are automatically
|
(like older Mac Terminals), hex colors are automatically
|
||||||
approximated to the closest available ANSI color.
|
approximated to the closest available ANSI color.
|
||||||
@@ -170,9 +168,9 @@ export const ColorsDisplay: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
<Box marginTop={1}>
|
<Box marginTop={1}>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.primary}>
|
||||||
Active Theme:{' '}
|
Active Theme:{' '}
|
||||||
<Text color={theme.text.primary} bold>
|
<Text color={theme.text.accent} bold>
|
||||||
{activeTheme.name}
|
{activeTheme.name}
|
||||||
</Text>{' '}
|
</Text>{' '}
|
||||||
({activeTheme.type})
|
({activeTheme.type})
|
||||||
|
|||||||
Reference in New Issue
Block a user