Skip to content

Commit

Permalink
chore: add inverseTextSecondary to the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Dec 10, 2024
1 parent 1fd8ac1 commit fd9aa5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatInput/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const ChatInput = observer(
ref={inputRef}
multiline
placeholder={l10n.inputPlaceholder}
placeholderTextColor={theme.colors.outline}
placeholderTextColor={theme.colors.inverseTextSecondary}
underlineColorAndroid="transparent"
{...textInputProps}
style={[styles.input, textInputProps?.style]}
Expand Down
2 changes: 2 additions & 0 deletions src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ const createSemanticColors = (
border: withOpacity(baseColors.onSurface, 0.05),
placeholder: withOpacity(baseColors.onSurface, 0.3),
textSecondary: withOpacity(baseColors.onSurface, 0.5),
inverseText: baseColors.inverseOnSurface,
inverseTextSecondary: withOpacity(baseColors.inverseOnSurface, 0.5),

// Interactive states
stateLayerOpacity: 0.12,
Expand Down
2 changes: 2 additions & 0 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ export interface SemanticColors {
surfaceBright: string;

textSecondary: string;
inverseText: string;
inverseTextSecondary: string;

border: string;
placeholder: string;
Expand Down

0 comments on commit fd9aa5a

Please sign in to comment.