File tree Expand file tree Collapse file tree 7 files changed +21
-10
lines changed
Expand file tree Collapse file tree 7 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ Logging in with Google... Please restart Gemini CLI to continue.
154154 padding = { 1 }
155155 width = "100%"
156156 >
157- < Text bold > Get started</ Text >
157+ < Text bold color = { theme . text . primary } >
158+ Get started
159+ </ Text >
158160 < Box marginTop = { 1 } >
159161 < Text color = { theme . text . primary } >
160162 How would you like to authenticate for this project?
Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ export function EditorSettingsDialog({
154154 </ Box >
155155
156156 < Box flexDirection = "column" width = "55%" paddingLeft = { 2 } >
157- < Text bold > Editor Preference</ Text >
157+ < Text bold color = { theme . text . primary } >
158+ Editor Preference
159+ </ Text >
158160 < Box flexDirection = "column" gap = { 1 } marginTop = { 1 } >
159161 < Text color = { theme . text . secondary } >
160162 These editors are currently supported. Please note that some editors
Original file line number Diff line number Diff line change @@ -187,7 +187,9 @@ export const StatsDisplay: React.FC<StatsDisplayProps> = ({
187187 if ( title ) {
188188 return theme . ui . gradient && theme . ui . gradient . length > 0 ? (
189189 < Gradient colors = { theme . ui . gradient } >
190- < Text bold > { title } </ Text >
190+ < Text bold color = { theme . text . primary } >
191+ { title }
192+ </ Text >
191193 </ Gradient >
192194 ) : (
193195 < Text bold color = { theme . text . accent } >
Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ export function ThemeDialog({
215215
216216 { /* Right Column: Preview */ }
217217 < Box flexDirection = "column" width = "55%" paddingLeft = { 2 } >
218- < Text bold > Preview</ Text >
218+ < Text bold color = { theme . text . primary } >
219+ Preview
220+ </ Text >
219221 { /* Get the Theme object for the highlighted theme, fall back to default if not found */ }
220222 { ( ( ) => {
221223 const previewTheme =
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
112112 ) : typeof resultDisplay === 'string' && ! renderOutputAsMarkdown ? (
113113 < MaxSizedBox maxHeight = { availableHeight } maxWidth = { childWidth } >
114114 < Box >
115- < Text wrap = "wrap" > { resultDisplay } </ Text >
115+ < Text wrap = "wrap" color = { theme . text . primary } >
116+ { resultDisplay }
117+ </ Text >
116118 </ Box >
117119 </ MaxSizedBox >
118120 ) : typeof resultDisplay === 'object' &&
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ function renderHastNode(
3131 inheritedColor : string | undefined ,
3232) : React . ReactNode {
3333 if ( node . type === 'text' ) {
34- // Use the color passed down from parent element, if any
35- return < Text color = { inheritedColor } > { node . value } </ Text > ;
34+ // Use the color passed down from parent element, or the theme's default.
35+ const color = inheritedColor || theme . defaultColor ;
36+ return < Text color = { color } > { node . value } </ Text > ;
3637 }
3738
3839 // Handle Element Nodes: Determine color and pass it down, don't wrap
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({
188188 break ;
189189 case 3 :
190190 headerNode = (
191- < Text bold >
191+ < Text bold color = { theme . text . primary } >
192192 < RenderInline text = { headerText } />
193193 </ Text >
194194 ) ;
@@ -386,10 +386,10 @@ const RenderListItemInternal: React.FC<RenderListItemProps> = ({
386386 flexDirection = "row"
387387 >
388388 < Box width = { prefixWidth } >
389- < Text > { prefix } </ Text >
389+ < Text color = { theme . text . primary } > { prefix } </ Text >
390390 </ Box >
391391 < Box flexGrow = { LIST_ITEM_TEXT_FLEX_GROW } >
392- < Text wrap = "wrap" >
392+ < Text wrap = "wrap" color = { theme . text . primary } >
393393 < RenderInline text = { itemText } />
394394 </ Text >
395395 </ Box >
You can’t perform that action at this time.
0 commit comments