diff options
| author | Jacob Richman <[email protected]> | 2025-08-15 20:18:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-16 03:18:31 +0000 |
| commit | 6c1373c33212e26521701acf73c0398721b3a881 (patch) | |
| tree | 6a00fb90c90b51a0c8285b21af7b174064ab6492 /packages/cli/src/ui/components/ThemeDialog.tsx | |
| parent | d57cc0b9306f0359482ef6e243308bcda2989007 (diff) | |
Revert "Update semantic color tokens" (#6365)
Diffstat (limited to 'packages/cli/src/ui/components/ThemeDialog.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/ThemeDialog.tsx | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/packages/cli/src/ui/components/ThemeDialog.tsx b/packages/cli/src/ui/components/ThemeDialog.tsx index c26dfa96..16ecfc8f 100644 --- a/packages/cli/src/ui/components/ThemeDialog.tsx +++ b/packages/cli/src/ui/components/ThemeDialog.tsx @@ -6,7 +6,7 @@ import React, { useCallback, useState } from 'react'; import { Box, Text } from 'ink'; -import { theme } from '../semantic-colors.js'; +import { Colors } from '../colors.js'; import { themeManager, DEFAULT_THEME } from '../themes/theme-manager.js'; import { RadioButtonSelect } from './shared/RadioButtonSelect.js'; import { DiffRenderer } from './messages/DiffRenderer.js'; @@ -207,7 +207,7 @@ export function ThemeDialog({ return ( <Box borderStyle="round" - borderColor={theme.border.default} + borderColor={Colors.Gray} flexDirection="column" paddingTop={includePadding ? 1 : 0} paddingBottom={includePadding ? 1 : 0} @@ -218,19 +218,9 @@ export function ThemeDialog({ <Box flexDirection="row"> {/* Left Column: Selection */} <Box flexDirection="column" width="45%" paddingRight={2}> - <Text - bold={currentFocusedSection === 'theme'} - wrap="truncate" - color={ - currentFocusedSection === 'theme' - ? theme.text.primary - : theme.text.secondary - } - > + <Text bold={currentFocusedSection === 'theme'} wrap="truncate"> {currentFocusedSection === 'theme' ? '> ' : ' '}Select Theme{' '} - <Text color={theme.text.secondary}> - {otherScopeModifiedMessage} - </Text> + <Text color={Colors.Gray}>{otherScopeModifiedMessage}</Text> </Text> <RadioButtonSelect key={selectInputKey} @@ -247,15 +237,7 @@ export function ThemeDialog({ {/* Scope Selection */} {showScopeSelection && ( <Box marginTop={1} flexDirection="column"> - <Text - bold={currentFocusedSection === 'scope'} - wrap="truncate" - color={ - currentFocusedSection === 'scope' - ? theme.text.primary - : theme.text.secondary - } - > + <Text bold={currentFocusedSection === 'scope'} wrap="truncate"> {currentFocusedSection === 'scope' ? '> ' : ' '}Apply To </Text> <RadioButtonSelect @@ -272,9 +254,7 @@ export function ThemeDialog({ {/* Right Column: Preview */} <Box flexDirection="column" width="55%" paddingLeft={2}> - <Text bold color={theme.text.primary}> - Preview - </Text> + <Text bold>Preview</Text> {/* Get the Theme object for the highlighted theme, fall back to default if not found */} {(() => { const previewTheme = @@ -284,7 +264,7 @@ export function ThemeDialog({ return ( <Box borderStyle="single" - borderColor={theme.border.default} + borderColor={Colors.Gray} paddingTop={includePadding ? 1 : 0} paddingBottom={includePadding ? 1 : 0} paddingLeft={1} @@ -301,7 +281,6 @@ def fibonacci(n): 'python', codeBlockHeight, colorizeCodeWidth, - previewTheme, )} <Box marginTop={1} /> <DiffRenderer @@ -321,7 +300,7 @@ def fibonacci(n): </Box> </Box> <Box marginTop={1}> - <Text color={theme.text.secondary} wrap="truncate"> + <Text color={Colors.Gray} wrap="truncate"> (Use Enter to select {showScopeSelection ? ', Tab to change focus' : ''}) </Text> |
