Skip to content

Commit

Permalink
Merge pull request #44048 from tienifr/fix/38594-light-mode-status-bar
Browse files Browse the repository at this point in the history
fix change the status bar color
  • Loading branch information
danieldoglas authored Jun 28, 2024
2 parents 83d1efe + 3b06703 commit f9a18c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/LottieAnimations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const DotLottieAnimations = {
file: require('@assets/animations/Desk.lottie'),
w: 200,
h: 120,
backgroundColor: colors.blue700,
},
Plane: {
file: require('@assets/animations/Plane.lottie'),
Expand Down
4 changes: 0 additions & 4 deletions src/pages/settings/Troubleshoot/TroubleshootPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import Text from '@components/Text';
import TextLink from '@components/TextLink';
import useEnvironment from '@hooks/useEnvironment';
import useLocalize from '@hooks/useLocalize';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import useWaitForNavigation from '@hooks/useWaitForNavigation';
import useWindowDimensions from '@hooks/useWindowDimensions';
Expand All @@ -28,7 +27,6 @@ import * as Report from '@userActions/Report';
import type {TranslationPaths} from '@src/languages/types';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import SCREENS from '@src/SCREENS';
import getLightbulbIllustrationStyle from './getLightbulbIllustrationStyle';

type BaseMenuItem = {
Expand All @@ -45,7 +43,6 @@ type TroubleshootPageProps = TroubleshootPageOnyxProps;

function TroubleshootPage({shouldStoreLogs}: TroubleshootPageProps) {
const {translate} = useLocalize();
const theme = useTheme();
const styles = useThemeStyles();
const {isProduction} = useEnvironment();
const [isConfirmationModalVisible, setIsConfirmationModalVisible] = useState(false);
Expand Down Expand Up @@ -105,7 +102,6 @@ function TroubleshootPage({shouldStoreLogs}: TroubleshootPageProps) {
illustration={LottieAnimations.Desk}
illustrationStyle={illustrationStyle}
titleStyles={styles.accountSettingsSectionTitle}
illustrationBackgroundColor={theme.PAGE_THEMES[SCREENS.SETTINGS.TROUBLESHOOT].backgroundColor}
renderSubtitle={() => (
<Text style={[styles.flexRow, styles.alignItemsCenter, styles.w100, styles.mt2]}>
<Text style={[styles.textNormal, styles.colorMuted]}>{translate('initialSettingsPage.troubleshoot.description')}</Text>{' '}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const darkTheme = {
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.TROUBLESHOOT]: {
backgroundColor: colors.blue700,
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.REFERRAL_DETAILS]: {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ const lightTheme = {
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,
},
[SCREENS.SETTINGS.TROUBLESHOOT]: {
backgroundColor: colors.blue700,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
backgroundColor: colors.productLight100,
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,
},
[SCREENS.REFERRAL_DETAILS]: {
backgroundColor: colors.pink800,
Expand Down

0 comments on commit f9a18c3

Please sign in to comment.