mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
Update default text styles (#8291)
This commit is contained in:
@@ -154,7 +154,9 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|||||||
padding={1}
|
padding={1}
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
<Text bold>Get started</Text>
|
<Text bold color={theme.text.primary}>
|
||||||
|
Get started
|
||||||
|
</Text>
|
||||||
<Box marginTop={1}>
|
<Box marginTop={1}>
|
||||||
<Text color={theme.text.primary}>
|
<Text color={theme.text.primary}>
|
||||||
How would you like to authenticate for this project?
|
How would you like to authenticate for this project?
|
||||||
|
|||||||
@@ -154,7 +154,9 @@ export function EditorSettingsDialog({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box flexDirection="column" width="55%" paddingLeft={2}>
|
<Box flexDirection="column" width="55%" paddingLeft={2}>
|
||||||
<Text bold>Editor Preference</Text>
|
<Text bold color={theme.text.primary}>
|
||||||
|
Editor Preference
|
||||||
|
</Text>
|
||||||
<Box flexDirection="column" gap={1} marginTop={1}>
|
<Box flexDirection="column" gap={1} marginTop={1}>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.secondary}>
|
||||||
These editors are currently supported. Please note that some editors
|
These editors are currently supported. Please note that some editors
|
||||||
|
|||||||
@@ -187,7 +187,9 @@ export const StatsDisplay: React.FC<StatsDisplayProps> = ({
|
|||||||
if (title) {
|
if (title) {
|
||||||
return theme.ui.gradient && theme.ui.gradient.length > 0 ? (
|
return theme.ui.gradient && theme.ui.gradient.length > 0 ? (
|
||||||
<Gradient colors={theme.ui.gradient}>
|
<Gradient colors={theme.ui.gradient}>
|
||||||
<Text bold>{title}</Text>
|
<Text bold color={theme.text.primary}>
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
</Gradient>
|
</Gradient>
|
||||||
) : (
|
) : (
|
||||||
<Text bold color={theme.text.accent}>
|
<Text bold color={theme.text.accent}>
|
||||||
|
|||||||
@@ -215,7 +215,9 @@ export function ThemeDialog({
|
|||||||
|
|
||||||
{/* Right Column: Preview */}
|
{/* Right Column: Preview */}
|
||||||
<Box flexDirection="column" width="55%" paddingLeft={2}>
|
<Box flexDirection="column" width="55%" paddingLeft={2}>
|
||||||
<Text bold>Preview</Text>
|
<Text bold color={theme.text.primary}>
|
||||||
|
Preview
|
||||||
|
</Text>
|
||||||
{/* Get the Theme object for the highlighted theme, fall back to default if not found */}
|
{/* Get the Theme object for the highlighted theme, fall back to default if not found */}
|
||||||
{(() => {
|
{(() => {
|
||||||
const previewTheme =
|
const previewTheme =
|
||||||
|
|||||||
@@ -112,7 +112,9 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
|
|||||||
) : typeof resultDisplay === 'string' && !renderOutputAsMarkdown ? (
|
) : typeof resultDisplay === 'string' && !renderOutputAsMarkdown ? (
|
||||||
<MaxSizedBox maxHeight={availableHeight} maxWidth={childWidth}>
|
<MaxSizedBox maxHeight={availableHeight} maxWidth={childWidth}>
|
||||||
<Box>
|
<Box>
|
||||||
<Text wrap="wrap">{resultDisplay}</Text>
|
<Text wrap="wrap" color={theme.text.primary}>
|
||||||
|
{resultDisplay}
|
||||||
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</MaxSizedBox>
|
</MaxSizedBox>
|
||||||
) : typeof resultDisplay === 'object' &&
|
) : typeof resultDisplay === 'object' &&
|
||||||
|
|||||||
@@ -31,8 +31,9 @@ function renderHastNode(
|
|||||||
inheritedColor: string | undefined,
|
inheritedColor: string | undefined,
|
||||||
): React.ReactNode {
|
): React.ReactNode {
|
||||||
if (node.type === 'text') {
|
if (node.type === 'text') {
|
||||||
// Use the color passed down from parent element, if any
|
// Use the color passed down from parent element, or the theme's default.
|
||||||
return <Text color={inheritedColor}>{node.value}</Text>;
|
const color = inheritedColor || theme.defaultColor;
|
||||||
|
return <Text color={color}>{node.value}</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle Element Nodes: Determine color and pass it down, don't wrap
|
// Handle Element Nodes: Determine color and pass it down, don't wrap
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
headerNode = (
|
headerNode = (
|
||||||
<Text bold>
|
<Text bold color={theme.text.primary}>
|
||||||
<RenderInline text={headerText} />
|
<RenderInline text={headerText} />
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
@@ -386,10 +386,10 @@ const RenderListItemInternal: React.FC<RenderListItemProps> = ({
|
|||||||
flexDirection="row"
|
flexDirection="row"
|
||||||
>
|
>
|
||||||
<Box width={prefixWidth}>
|
<Box width={prefixWidth}>
|
||||||
<Text>{prefix}</Text>
|
<Text color={theme.text.primary}>{prefix}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Box flexGrow={LIST_ITEM_TEXT_FLEX_GROW}>
|
<Box flexGrow={LIST_ITEM_TEXT_FLEX_GROW}>
|
||||||
<Text wrap="wrap">
|
<Text wrap="wrap" color={theme.text.primary}>
|
||||||
<RenderInline text={itemText} />
|
<RenderInline text={itemText} />
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user