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, 41 insertions, 43 deletions
diff --git a/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx b/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx index f79bb4d6..d4c13097 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 { theme } from '../semantic-colors.js'; +import { Colors } from '../colors.js'; import { useKeypress } from '../hooks/useKeypress.js'; interface CloudFreePrivacyNoticeProps { @@ -34,16 +34,16 @@ export const CloudFreePrivacyNotice = ({ ); if (privacyState.isLoading) { - return <Text color={theme.text.secondary}>Loading...</Text>; + return <Text color={Colors.Gray}>Loading...</Text>; } if (privacyState.error) { return ( <Box flexDirection="column" marginY={1}> - <Text color={theme.status.error}> + <Text color={Colors.AccentRed}> Error loading Opt-in settings: {privacyState.error} </Text> - <Text color={theme.text.secondary}>Press Esc to exit.</Text> + <Text color={Colors.Gray}>Press Esc to exit.</Text> </Box> ); } @@ -59,17 +59,17 @@ export const CloudFreePrivacyNotice = ({ return ( <Box flexDirection="column" marginY={1}> - <Text bold color={theme.text.accent}> + <Text bold color={Colors.AccentPurple}> Gemini Code Assist for Individuals Privacy Notice </Text> <Newline /> - <Text color={theme.text.primary}> + <Text> This notice and our Privacy Policy - <Text color={theme.text.link}>[1]</Text> describe how Gemini Code Assist - handles your data. Please read them carefully. + <Text color={Colors.AccentBlue}>[1]</Text> describe how Gemini Code + Assist handles your data. Please read them carefully. </Text> <Newline /> - <Text color={theme.text.primary}> + <Text> 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 color={theme.text.primary}> + <Text> 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 color={theme.text.primary}> + <Text> Allow Google to use this data to develop and improve our products? </Text> <RadioButtonSelect @@ -106,14 +106,12 @@ export const CloudFreePrivacyNotice = ({ /> </Box> <Newline /> - <Text color={theme.text.primary}> - <Text color={theme.text.link}>[1]</Text>{' '} + <Text> + <Text color={Colors.AccentBlue}>[1]</Text>{' '} https://policies.google.com/privacy </Text> <Newline /> - <Text color={theme.text.secondary}> - Press Enter to choose an option and exit. - </Text> + <Text color={Colors.Gray}>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 ce640308..f0adbb68 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 { theme } from '../semantic-colors.js'; +import { Colors } from '../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={theme.text.accent}> + <Text bold color={Colors.AccentPurple}> Vertex AI Notice </Text> <Newline /> - <Text color={theme.text.primary}> - Service Specific Terms<Text color={theme.text.link}>[1]</Text> are + <Text> + Service Specific Terms<Text color={Colors.AccentBlue}>[1]</Text> are incorporated into the agreement under which Google has agreed to provide - Google Cloud Platform<Text color={theme.status.success}>[2]</Text> to + Google Cloud Platform<Text color={Colors.AccentGreen}>[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 color={theme.text.primary}> - <Text color={theme.text.link}>[1]</Text>{' '} + <Text> + <Text color={Colors.AccentBlue}>[1]</Text>{' '} https://cloud.google.com/terms/service-terms </Text> - <Text color={theme.text.primary}> - <Text color={theme.status.success}>[2]</Text>{' '} + <Text> + <Text color={Colors.AccentGreen}>[2]</Text>{' '} https://cloud.google.com/terms/services </Text> <Newline /> - <Text color={theme.text.secondary}>Press Esc to exit.</Text> + <Text color={Colors.Gray}>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 1f4015b5..c0eaa74f 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 { theme } from '../semantic-colors.js'; +import { Colors } from '../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={theme.text.accent}> + <Text bold color={Colors.AccentPurple}> Gemini API Key Notice </Text> <Newline /> - <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 + <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 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={theme.status.success}>[3]</Text>, and the Gemini API + <Text color={Colors.AccentGreen}>[3]</Text>, and the Gemini API Additional Terms of Service (the "Additional Terms") - <Text color={theme.text.accent}>[4]</Text>. + <Text color={Colors.AccentPurple}>[4]</Text>. </Text> <Newline /> - <Text color={theme.text.primary}> - <Text color={theme.text.link}>[1]</Text>{' '} + <Text> + <Text color={Colors.AccentBlue}>[1]</Text>{' '} https://ai.google.dev/docs/gemini_api_overview </Text> - <Text color={theme.text.primary}> - <Text color={theme.status.error}>[2]</Text> https://aistudio.google.com/ + <Text> + <Text color={Colors.AccentRed}>[2]</Text> https://aistudio.google.com/ </Text> - <Text color={theme.text.primary}> - <Text color={theme.status.success}>[3]</Text>{' '} + <Text> + <Text color={Colors.AccentGreen}>[3]</Text>{' '} https://developers.google.com/terms </Text> - <Text color={theme.text.primary}> - <Text color={theme.text.accent}>[4]</Text>{' '} + <Text> + <Text color={Colors.AccentPurple}>[4]</Text>{' '} https://ai.google.dev/gemini-api/terms </Text> <Newline /> - <Text color={theme.text.secondary}>Press Esc to exit.</Text> + <Text color={Colors.Gray}>Press Esc to exit.</Text> </Box> ); }; |
