From 785ee5d59a60df89413d8f0dd1b7916279f6e786 Mon Sep 17 00:00:00 2001 From: Miguel Solorio Date: Thu, 7 Aug 2025 16:11:35 -0700 Subject: Use semantic colors in themes (#5796) Co-authored-by: Jacob Richman --- packages/cli/src/ui/components/InputPrompt.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'packages/cli/src/ui/components/InputPrompt.tsx') diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 7a7a9934..7250afea 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -6,7 +6,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Box, Text } from 'ink'; -import { Colors } from '../colors.js'; +import { theme } from '../semantic-colors.js'; import { SuggestionsDisplay } from './SuggestionsDisplay.js'; import { useInputHistory } from '../hooks/useInputHistory.js'; import { TextBuffer, logicalPosToOffset } from './shared/text-buffer.js'; @@ -469,15 +469,17 @@ export const InputPrompt: React.FC = ({ <> {shellModeActive ? ( reverseSearchActive ? ( - (r:) + (r:) ) : ( '! ' ) @@ -490,10 +492,10 @@ export const InputPrompt: React.FC = ({ focus ? ( {chalk.inverse(placeholder.slice(0, 1))} - {placeholder.slice(1)} + {placeholder.slice(1)} ) : ( - {placeholder} + {placeholder} ) ) : ( linesToRender.map((lineText, visualIdxInRenderedSet) => { -- cgit v1.2.3