summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/AutoAcceptIndicator.tsx
diff options
context:
space:
mode:
authorMiguel Solorio <[email protected]>2025-08-15 15:39:54 -0700
committerGitHub <[email protected]>2025-08-15 22:39:54 +0000
commit3c0af3654ac5491e79c6f9b55de5debf0e1e13c1 (patch)
tree51eabe9544038b06b0c0a78d31dfa25232de3754 /packages/cli/src/ui/components/AutoAcceptIndicator.tsx
parent5246aa11f49108a22d4ba306a49b1af79153cac1 (diff)
Update semantic color tokens (#6253)
Co-authored-by: jacob314 <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/AutoAcceptIndicator.tsx')
-rw-r--r--packages/cli/src/ui/components/AutoAcceptIndicator.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/components/AutoAcceptIndicator.tsx b/packages/cli/src/ui/components/AutoAcceptIndicator.tsx
index f8d50fd0..a98f036c 100644
--- a/packages/cli/src/ui/components/AutoAcceptIndicator.tsx
+++ b/packages/cli/src/ui/components/AutoAcceptIndicator.tsx
@@ -6,7 +6,7 @@
import React from 'react';
import { Box, Text } from 'ink';
-import { Colors } from '../colors.js';
+import { theme } from '../semantic-colors.js';
import { ApprovalMode } from '@google/gemini-cli-core';
interface AutoAcceptIndicatorProps {
@@ -22,12 +22,12 @@ export const AutoAcceptIndicator: React.FC<AutoAcceptIndicatorProps> = ({
switch (approvalMode) {
case ApprovalMode.AUTO_EDIT:
- textColor = Colors.AccentGreen;
+ textColor = theme.status.success;
textContent = 'accepting edits';
subText = ' (shift + tab to toggle)';
break;
case ApprovalMode.YOLO:
- textColor = Colors.AccentRed;
+ textColor = theme.status.error;
textContent = 'YOLO mode';
subText = ' (ctrl + y to toggle)';
break;
@@ -40,7 +40,7 @@ export const AutoAcceptIndicator: React.FC<AutoAcceptIndicatorProps> = ({
<Box>
<Text color={textColor}>
{textContent}
- {subText && <Text color={Colors.Gray}>{subText}</Text>}
+ {subText && <Text color={theme.text.secondary}>{subText}</Text>}
</Text>
</Box>
);