Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type BaseFloatingCameraButtonProps = {
};

function BaseFloatingCameraButton({icon}: BaseFloatingCameraButtonProps) {
const {textLight} = useTheme();
const {floatingActionButtonIcon} = useTheme();
const styles = useThemeStyles();
const {translate} = useLocalize();
const {accountID} = useCurrentUserPersonalDetails();
Expand Down Expand Up @@ -108,7 +108,7 @@ function BaseFloatingCameraButton({icon}: BaseFloatingCameraButtonProps) {
testID="floating-camera-button-container"
>
<Icon
fill={textLight}
fill={floatingActionButtonIcon}
src={icon}
width={variables.iconSizeNormal}
height={variables.iconSizeNormal}
Expand Down
4 changes: 2 additions & 2 deletions src/components/FloatingReceiptButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type FloatingReceiptButtonProps = WithSentryLabel & {
};

function FloatingReceiptButton({onPress, accessibilityLabel, role, sentryLabel}: FloatingReceiptButtonProps) {
const {successHover, textLight} = useTheme();
const {successHover, floatingActionButtonIcon} = useTheme();
const styles = useThemeStyles();
const borderRadius = styles.floatingActionButton.borderRadius;
const fabPressable = useRef<HTMLDivElement | ViewType | Text | null>(null);
Expand Down Expand Up @@ -63,7 +63,7 @@ function FloatingReceiptButton({onPress, accessibilityLabel, role, sentryLabel}:
testID="floating-receipt-button-container"
>
<Icon
fill={textLight}
fill={floatingActionButtonIcon}
src={icons.ReceiptPlus}
width={variables.iconSizeSmall}
height={variables.iconSizeSmall}
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/themes/dark-contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const darkContrastTheme = {
ourMentionBG: colors.green100,
ourMentionText: colors.green700,
receiptPlaceholderPlus: colors.green800,
floatingActionButtonIcon: colors.productLight900,
} satisfies ThemeColors;

export default darkContrastTheme;
1 change: 1 addition & 0 deletions src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const darkTheme = {
signInPage: colors.green800,
darkSupportingText: colors.productDark800,
receiptPlaceholderPlus: colors.productLight100,
floatingActionButtonIcon: colors.productDark900,

// Additional keys
overlay: colors.productDark400,
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/themes/light-contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const lightContrastTheme = {
textLight: colors.productLight900,
iconColorfulBackground: colors.yellow800,
receiptPlaceholderPlus: colors.green800,
floatingActionButtonIcon: colors.productLight900,
} satisfies ThemeColors;

export default lightContrastTheme;
1 change: 1 addition & 0 deletions src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const lightTheme = {
signInPage: colors.green800,
darkSupportingText: colors.productDark800,
receiptPlaceholderPlus: colors.productLight100,
floatingActionButtonIcon: colors.white,

// Additional keys
overlay: colors.productLight400,
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type ThemeColors = {
signInPage: Color;
darkSupportingText: Color;
receiptPlaceholderPlus: Color;
floatingActionButtonIcon: Color;

// Additional keys
overlay: Color;
Expand Down
Loading