Skip to content

Commit

Permalink
Merge pull request #32277 from Expensify/georgia-finalizeLightMode
Browse files Browse the repository at this point in the history
Light Mode Clean Up
  • Loading branch information
grgia authored Dec 5, 2023
2 parents 3ca4393 + fb487b2 commit 573c5e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/HeaderPageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ function HeaderPageLayout({backgroundColor, children, footer, headerContainerSty
const {isOffline} = useNetwork();
const appBGColor = StyleUtils.getBackgroundColorStyle(theme.appBG);
const {titleColor, iconFill} = useMemo(() => {
const isColorfulBackground = (backgroundColor || theme.appBG) !== theme.appBG;
const isColorfulBackground = (backgroundColor || theme.appBG) !== theme.appBG && (backgroundColor || theme.highlightBG) !== theme.highlightBG;
return {
titleColor: isColorfulBackground ? theme.textColorfulBackground : undefined,
iconFill: isColorfulBackground ? theme.iconColorfulBackground : undefined,
};
}, [backgroundColor, theme.appBG, theme.iconColorfulBackground, theme.textColorfulBackground]);
}, [backgroundColor, theme.appBG, theme.highlightBG, theme.iconColorfulBackground, theme.textColorfulBackground]);

return (
<ScreenWrapper
Expand Down
10 changes: 5 additions & 5 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ const styles = (theme: ThemeColors) =>
buttonDivider: {
height: variables.dropDownButtonDividerHeight,
borderWidth: 0.7,
borderColor: theme.text,
borderColor: theme.textLight,
},

noBorderRadius: {
Expand Down Expand Up @@ -1150,15 +1150,15 @@ const styles = (theme: ThemeColors) =>
textReceiptUpload: {
...headlineFont,
fontSize: variables.fontSizeXLarge,
color: theme.textLight,
color: theme.text,
textAlign: 'center',
},

subTextReceiptUpload: {
fontFamily: fontFamily.EXP_NEUE,
lineHeight: variables.lineHeightLarge,
textAlign: 'center',
color: theme.textLight,
color: theme.text,
},

furtherDetailsText: {
Expand Down Expand Up @@ -3353,7 +3353,7 @@ const styles = (theme: ThemeColors) =>
fontFamily: fontFamily.EXP_NEUE,
fontSize: variables.fontSizeXLarge,
lineHeight: variables.lineHeightXXLarge,
color: theme.text,
color: theme.textColorfulBackground,
},

eReceiptWaypointTitle: {
Expand Down Expand Up @@ -3608,7 +3608,7 @@ const styles = (theme: ThemeColors) =>
marginLeft: 8,
fontFamily: isSelected ? fontFamily.EXP_NEUE_BOLD : fontFamily.EXP_NEUE,
fontWeight: isSelected ? fontWeightBold : '400',
color: isSelected ? theme.textLight : theme.textSupporting,
color: isSelected ? theme.text : theme.textSupporting,
} satisfies TextStyle),

tabBackground: (hovered: boolean, isFocused: boolean, background: string) => ({
Expand Down

0 comments on commit 573c5e8

Please sign in to comment.