diff options
Diffstat (limited to 'packages/cli/src/ui/privacy')
| -rw-r--r-- | packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx | 30 | ||||
| -rw-r--r-- | packages/cli/src/ui/privacy/CloudPaidPrivacyNotice.tsx | 20 | ||||
| -rw-r--r-- | packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx | 34 |
3 files changed, 43 insertions, 41 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> ); }; diff --git a/packages/cli/src/ui/privacy/CloudPaidPrivacyNotice.tsx b/packages/cli/src/ui/privacy/CloudPaidPrivacyNotice.tsx index f0adbb68..ce640308 100644 --- a/packages/cli/src/ui/privacy/CloudPaidPrivacyNotice.tsx +++ b/packages/cli/src/ui/privacy/CloudPaidPrivacyNotice.tsx @@ -5,7 +5,7 @@ */ import { Box, Newline, Text } from 'ink'; -import { Colors } from '../colors.js'; +import { theme } from '../semantic-colors.js'; import { useKeypress } from '../hooks/useKeypress.js'; interface CloudPaidPrivacyNoticeProps { @@ -26,14 +26,14 @@ export const CloudPaidPrivacyNotice = ({ return ( <Box flexDirection="column" marginBottom={1}> - <Text bold color={Colors.AccentPurple}> + <Text bold color={theme.text.accent}> Vertex AI Notice </Text> <Newline /> - <Text> - Service Specific Terms<Text color={Colors.AccentBlue}>[1]</Text> are + <Text color={theme.text.primary}> + Service Specific Terms<Text color={theme.text.link}>[1]</Text> are incorporated into the agreement under which Google has agreed to provide - Google Cloud Platform<Text color={Colors.AccentGreen}>[2]</Text> to + Google Cloud Platform<Text color={theme.status.success}>[2]</Text> to Customer (the “Agreement”). If the Agreement authorizes the resale or supply of Google Cloud Platform under a Google Cloud partner or reseller program, then except for in the section entitled “Partner-Specific @@ -44,16 +44,16 @@ export const CloudPaidPrivacyNotice = ({ them in the Agreement. </Text> <Newline /> - <Text> - <Text color={Colors.AccentBlue}>[1]</Text>{' '} + <Text color={theme.text.primary}> + <Text color={theme.text.link}>[1]</Text>{' '} https://cloud.google.com/terms/service-terms </Text> - <Text> - <Text color={Colors.AccentGreen}>[2]</Text>{' '} + <Text color={theme.text.primary}> + <Text color={theme.status.success}>[2]</Text>{' '} https://cloud.google.com/terms/services </Text> <Newline /> - <Text color={Colors.Gray}>Press Esc to exit.</Text> + <Text color={theme.text.secondary}>Press Esc to exit.</Text> </Box> ); }; diff --git a/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx index c0eaa74f..1f4015b5 100644 --- a/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx +++ b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx @@ -5,7 +5,7 @@ */ import { Box, Newline, Text } from 'ink'; -import { Colors } from '../colors.js'; +import { theme } from '../semantic-colors.js'; import { useKeypress } from '../hooks/useKeypress.js'; interface GeminiPrivacyNoticeProps { @@ -24,39 +24,39 @@ export const GeminiPrivacyNotice = ({ onExit }: GeminiPrivacyNoticeProps) => { return ( <Box flexDirection="column" marginBottom={1}> - <Text bold color={Colors.AccentPurple}> + <Text bold color={theme.text.accent}> Gemini API Key Notice </Text> <Newline /> - <Text> - By using the Gemini API<Text color={Colors.AccentBlue}>[1]</Text>, - Google AI Studio - <Text color={Colors.AccentRed}>[2]</Text>, and the other Google + <Text color={theme.text.primary}> + By using the Gemini API<Text color={theme.text.link}>[1]</Text>, Google + AI Studio + <Text color={theme.status.error}>[2]</Text>, and the other Google developer services that reference these terms (collectively, the "APIs" or "Services"), you are agreeing to Google APIs Terms of Service (the "API Terms") - <Text color={Colors.AccentGreen}>[3]</Text>, and the Gemini API + <Text color={theme.status.success}>[3]</Text>, and the Gemini API Additional Terms of Service (the "Additional Terms") - <Text color={Colors.AccentPurple}>[4]</Text>. + <Text color={theme.text.accent}>[4]</Text>. </Text> <Newline /> - <Text> - <Text color={Colors.AccentBlue}>[1]</Text>{' '} + <Text color={theme.text.primary}> + <Text color={theme.text.link}>[1]</Text>{' '} https://ai.google.dev/docs/gemini_api_overview </Text> - <Text> - <Text color={Colors.AccentRed}>[2]</Text> https://aistudio.google.com/ + <Text color={theme.text.primary}> + <Text color={theme.status.error}>[2]</Text> https://aistudio.google.com/ </Text> - <Text> - <Text color={Colors.AccentGreen}>[3]</Text>{' '} + <Text color={theme.text.primary}> + <Text color={theme.status.success}>[3]</Text>{' '} https://developers.google.com/terms </Text> - <Text> - <Text color={Colors.AccentPurple}>[4]</Text>{' '} + <Text color={theme.text.primary}> + <Text color={theme.text.accent}>[4]</Text>{' '} https://ai.google.dev/gemini-api/terms </Text> <Newline /> - <Text color={Colors.Gray}>Press Esc to exit.</Text> + <Text color={theme.text.secondary}>Press Esc to exit.</Text> </Box> ); }; |
