summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.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/privacy/CloudFreePrivacyNotice.tsx
parent5246aa11f49108a22d4ba306a49b1af79153cac1 (diff)
Update semantic color tokens (#6253)
Co-authored-by: jacob314 <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx')
-rw-r--r--packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx30
1 files changed, 16 insertions, 14 deletions
diff --git a/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx b/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx
index d4c13097..f79bb4d6 100644
--- a/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx
+++ b/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx
@@ -9,7 +9,7 @@ import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js';
import { usePrivacySettings } from '../hooks/usePrivacySettings.js';
import { CloudPaidPrivacyNotice } from './CloudPaidPrivacyNotice.js';
import { Config } from '@google/gemini-cli-core';
-import { Colors } from '../colors.js';
+import { theme } from '../semantic-colors.js';
import { useKeypress } from '../hooks/useKeypress.js';
interface CloudFreePrivacyNoticeProps {
@@ -34,16 +34,16 @@ export const CloudFreePrivacyNotice = ({
);
if (privacyState.isLoading) {
- return <Text color={Colors.Gray}>Loading...</Text>;
+ return <Text color={theme.text.secondary}>Loading...</Text>;
}
if (privacyState.error) {
return (
<Box flexDirection="column" marginY={1}>
- <Text color={Colors.AccentRed}>
+ <Text color={theme.status.error}>
Error loading Opt-in settings: {privacyState.error}
</Text>
- <Text color={Colors.Gray}>Press Esc to exit.</Text>
+ <Text color={theme.text.secondary}>Press Esc to exit.</Text>
</Box>
);
}
@@ -59,17 +59,17 @@ export const CloudFreePrivacyNotice = ({
return (
<Box flexDirection="column" marginY={1}>
- <Text bold color={Colors.AccentPurple}>
+ <Text bold color={theme.text.accent}>
Gemini Code Assist for Individuals Privacy Notice
</Text>
<Newline />
- <Text>
+ <Text color={theme.text.primary}>
This notice and our Privacy Policy
- <Text color={Colors.AccentBlue}>[1]</Text> describe how Gemini Code
- Assist handles your data. Please read them carefully.
+ <Text color={theme.text.link}>[1]</Text> describe how Gemini Code Assist
+ handles your data. Please read them carefully.
</Text>
<Newline />
- <Text>
+ <Text color={theme.text.primary}>
When you use Gemini Code Assist for individuals with Gemini CLI, Google
collects your prompts, related code, generated output, code edits,
related feature usage information, and your feedback to provide,
@@ -77,7 +77,7 @@ export const CloudFreePrivacyNotice = ({
technologies.
</Text>
<Newline />
- <Text>
+ <Text color={theme.text.primary}>
To help with quality and improve our products (such as generative
machine-learning models), human reviewers may read, annotate, and
process the data collected above. We take steps to protect your privacy
@@ -90,7 +90,7 @@ export const CloudFreePrivacyNotice = ({
</Text>
<Newline />
<Box flexDirection="column">
- <Text>
+ <Text color={theme.text.primary}>
Allow Google to use this data to develop and improve our products?
</Text>
<RadioButtonSelect
@@ -106,12 +106,14 @@ export const CloudFreePrivacyNotice = ({
/>
</Box>
<Newline />
- <Text>
- <Text color={Colors.AccentBlue}>[1]</Text>{' '}
+ <Text color={theme.text.primary}>
+ <Text color={theme.text.link}>[1]</Text>{' '}
https://policies.google.com/privacy
</Text>
<Newline />
- <Text color={Colors.Gray}>Press Enter to choose an option and exit.</Text>
+ <Text color={theme.text.secondary}>
+ Press Enter to choose an option and exit.
+ </Text>
</Box>
);
};