Update color styles for yes/no questions (#369)

This commit is contained in:
Miguel Solorio 2025-05-15 14:36:34 -07:00 committed by GitHub
parent 6cd8f66a76
commit 9efcb7741b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 13 deletions

View File

@ -31,7 +31,7 @@ export const ToolMessage: React.FC<IndividualToolCallDisplay> = ({
<Text color={Colors.AccentGreen}></Text> <Text color={Colors.AccentGreen}></Text>
)} )}
{status === ToolCallStatus.Confirming && ( {status === ToolCallStatus.Confirming && (
<Text color={Colors.AccentPurple}>?</Text> <Text color={Colors.AccentYellow}>?</Text>
)} )}
{status === ToolCallStatus.Canceled && ( {status === ToolCallStatus.Canceled && (
<Text color={Colors.AccentYellow} bold> <Text color={Colors.AccentYellow} bold>

View File

@ -76,19 +76,11 @@ export function RadioButtonSelect<T>({
function DynamicRadioIndicator({ function DynamicRadioIndicator({
isSelected = false, isSelected = false,
}: InkSelectIndicatorProps): React.JSX.Element { }: InkSelectIndicatorProps): React.JSX.Element {
let indicatorColor = Colors.Foreground; // Default for not selected
if (isSelected) {
if (isFocused) {
// Group is focused, selected item is AccentGreen
indicatorColor = Colors.AccentGreen;
} else {
// Group is NOT focused, selected item is Foreground
indicatorColor = Colors.Foreground;
}
}
return ( return (
<Box marginRight={1}> <Box marginRight={1}>
<Text color={indicatorColor}>{isSelected ? '●' : '○'}</Text> <Text color={isSelected ? Colors.AccentGreen : Colors.Foreground}>
{isSelected ? '●' : '○'}
</Text>
</Box> </Box>
); );
} }
@ -109,7 +101,7 @@ export function RadioButtonSelect<T>({
let textColor = Colors.Foreground; let textColor = Colors.Foreground;
if (isSelected) { if (isSelected) {
textColor = isFocused ? Colors.AccentGreen : Colors.Foreground; textColor = Colors.AccentGreen;
} }
if ( if (