Skip to content

Commit b4fcf70

Browse files
committed
cli: Update input colors to be brighter
1 parent eaded28 commit b4fcf70

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

cli/src/__tests__/unit/segmented-control.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ const theme: ChatTheme = {
3333
agentFocusedBg: '#334155',
3434
agentContentBg: '#000000',
3535
// Input
36-
inputBg: '#000',
3736
inputFg: '#fff',
38-
inputFocusedBg: '#000',
3937
inputFocusedFg: '#fff',
4038
// Modes
4139
modeFastBg: '#f60',

cli/src/chat.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,12 @@ export const Chat = ({
341341
if (totalMatches === 0 && agentSelectedIndex !== 0) {
342342
setAgentSelectedIndex(0)
343343
}
344-
}, [agentMatches.length, fileMatches.length, agentSelectedIndex, setAgentSelectedIndex])
344+
}, [
345+
agentMatches.length,
346+
fileMatches.length,
347+
agentSelectedIndex,
348+
setAgentSelectedIndex,
349+
])
345350

346351
const { handleSuggestionMenuKey } = useSuggestionMenuHandlers({
347352
slashContext,
@@ -768,8 +773,7 @@ export const Chat = ({
768773
style={{
769774
width: '100%',
770775
borderStyle: 'single',
771-
borderColor: theme.secondary,
772-
focusedBorderColor: theme.foreground,
776+
borderColor: theme.foreground,
773777
customBorderChars: BORDER_CHARS,
774778
paddingLeft: 1,
775779
paddingRight: 1,
@@ -883,7 +887,9 @@ export const Chat = ({
883887
</box>
884888
<text style={{ wrapMode: 'none' }}>
885889
<span fg={theme.warning}>
886-
{BORDER_CHARS.bottomLeft}{BORDER_CHARS.horizontal.repeat(separatorWidth - 2)}{BORDER_CHARS.bottomRight}
890+
{BORDER_CHARS.bottomLeft}
891+
{BORDER_CHARS.horizontal.repeat(separatorWidth - 2)}
892+
{BORDER_CHARS.bottomRight}
887893
</span>
888894
</text>
889895
</box>

cli/src/components/multiline-input.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,6 @@ export const MultilineInput = forwardRef<
742742
const textStyle: Record<string, unknown> = {
743743
bg: 'transparent',
744744
fg: inputColor,
745-
attributes: isPlaceholder
746-
? TextAttributes.DIM
747-
: textAttributes ?? TextAttributes.NONE,
748745
}
749746

750747
const cursorFg = theme.info

cli/src/types/theme-system.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,9 @@ export interface ChatTheme {
9393

9494
/** Agent content background */
9595
agentContentBg: string
96-
97-
// Input specific
98-
/** Input background */
99-
inputBg: string
100-
10196
/** Input text color */
10297
inputFg: ThemeColor
10398

104-
/** Focused input background */
105-
inputFocusedBg: string
106-
10799
/** Focused input text color */
108100
inputFocusedFg: ThemeColor
109101

cli/src/utils/theme-system.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -800,11 +800,7 @@ const DEFAULT_CHAT_THEMES: Record<ThemeName, ChatTheme> = {
800800
agentToggleExpandedBg: '#1d4ed8',
801801
agentFocusedBg: '#334155',
802802
agentContentBg: '#000000',
803-
804-
// Input
805-
inputBg: '#000000',
806803
inputFg: '#f5f5f5',
807-
inputFocusedBg: '#000000',
808804
inputFocusedFg: '#ffffff',
809805

810806
// Mode toggles
@@ -864,11 +860,7 @@ const DEFAULT_CHAT_THEMES: Record<ThemeName, ChatTheme> = {
864860
agentToggleExpandedBg: '#1d4ed8',
865861
agentFocusedBg: '#f3f4f6',
866862
agentContentBg: '#ffffff',
867-
868-
// Input
869-
inputBg: '#f9fafb',
870863
inputFg: '#111827',
871-
inputFocusedBg: '#ffffff',
872864
inputFocusedFg: '#000000',
873865

874866
// Mode toggles

0 commit comments

Comments
 (0)