Revert "Update semantic color tokens" (#6365)

This commit is contained in:
Jacob Richman
2025-08-15 20:18:31 -07:00
committed by GitHub
parent d57cc0b930
commit 6c1373c332
60 changed files with 502 additions and 606 deletions

View File

@@ -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>
);
};

View File

@@ -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>
);
};

View File

@@ -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
&quot;APIs&quot; or &quot;Services&quot;), you are agreeing to Google
APIs Terms of Service (the &quot;API Terms&quot;)
<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 &quot;Additional Terms&quot;)
<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>
);
};