mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Update color styles for yes/no questions (#369)
This commit is contained in:
@@ -31,7 +31,7 @@ export const ToolMessage: React.FC<IndividualToolCallDisplay> = ({
|
||||
<Text color={Colors.AccentGreen}>✔</Text>
|
||||
)}
|
||||
{status === ToolCallStatus.Confirming && (
|
||||
<Text color={Colors.AccentPurple}>?</Text>
|
||||
<Text color={Colors.AccentYellow}>?</Text>
|
||||
)}
|
||||
{status === ToolCallStatus.Canceled && (
|
||||
<Text color={Colors.AccentYellow} bold>
|
||||
|
||||
@@ -76,19 +76,11 @@ export function RadioButtonSelect<T>({
|
||||
function DynamicRadioIndicator({
|
||||
isSelected = false,
|
||||
}: 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 (
|
||||
<Box marginRight={1}>
|
||||
<Text color={indicatorColor}>{isSelected ? '●' : '○'}</Text>
|
||||
<Text color={isSelected ? Colors.AccentGreen : Colors.Foreground}>
|
||||
{isSelected ? '●' : '○'}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
@@ -109,7 +101,7 @@ export function RadioButtonSelect<T>({
|
||||
|
||||
let textColor = Colors.Foreground;
|
||||
if (isSelected) {
|
||||
textColor = isFocused ? Colors.AccentGreen : Colors.Foreground;
|
||||
textColor = Colors.AccentGreen;
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user