From bc5089206825dd0f69b924d24524c98687e9ba45 Mon Sep 17 00:00:00 2001 From: Satish Ravi Date: Fri, 25 Oct 2024 00:01:51 -0700 Subject: [PATCH 1/2] fix: use the right colors --- src/components/SegmentedControl.tsx | 6 +++--- src/keylessBackup/KeylessBackupIntro.tsx | 2 +- src/keylessBackup/SignInWithEmail.tsx | 15 ++++++++++----- .../registration/OnboardingRecoveryPhrase.tsx | 6 +++--- src/styles/progressDots.ts | 13 ++----------- 5 files changed, 19 insertions(+), 23 deletions(-) diff --git a/src/components/SegmentedControl.tsx b/src/components/SegmentedControl.tsx index 6bb0d84fd08..0a44b054d35 100644 --- a/src/components/SegmentedControl.tsx +++ b/src/components/SegmentedControl.tsx @@ -29,7 +29,7 @@ export default function SegmentedControl({ values, selectedIndex = 0, onChange } Extrapolation.CLAMP ) - const color = interpolateColor(selectedIndex, [0.5, 1], [colors.accent, colors.white]) + const color = interpolateColor(selectedIndex, [0.5, 1], [colors.black, colors.white]) const colorInverted = interpolateColor(selectedIndex, [0.5, 1], [colors.white, colors.black]) const onLayout = ({ @@ -118,7 +118,7 @@ const styles = StyleSheet.create({ height: HEIGHT, borderRadius: HEIGHT / 2, borderWidth: 1, - borderColor: colors.accent, + borderColor: colors.black, overflow: 'hidden', marginHorizontal: 30, }, @@ -128,7 +128,7 @@ const styles = StyleSheet.create({ bottom: 0, right: 0, left: 0, - backgroundColor: colors.accent, + backgroundColor: colors.black, }, maskedContainer: { // Transparent background because mask is based off alpha channel. diff --git a/src/keylessBackup/KeylessBackupIntro.tsx b/src/keylessBackup/KeylessBackupIntro.tsx index 77be5934004..e3c8c7e8d4a 100644 --- a/src/keylessBackup/KeylessBackupIntro.tsx +++ b/src/keylessBackup/KeylessBackupIntro.tsx @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ recoveryPhrase: { ...typeScale.labelSemiBoldMedium, textAlign: 'center', - color: Colors.black, + color: Colors.accent, margin: Spacing.Thick24, }, button: { diff --git a/src/keylessBackup/SignInWithEmail.tsx b/src/keylessBackup/SignInWithEmail.tsx index abd6694a60b..77d980adc8e 100644 --- a/src/keylessBackup/SignInWithEmail.tsx +++ b/src/keylessBackup/SignInWithEmail.tsx @@ -10,6 +10,7 @@ import BackButton from 'src/components/BackButton' import BottomSheet, { BottomSheetModalRefType } from 'src/components/BottomSheet' import Button, { BtnSizes, BtnTypes } from 'src/components/Button' import CustomHeader from 'src/components/header/CustomHeader' +import TextButton from 'src/components/TextButton' import AppleIcon from 'src/icons/Apple' import GoogleIcon from 'src/icons/Google' import { email } from 'src/images/Images' @@ -255,13 +256,13 @@ function SignInWithEmail({ route }: Props) { /> )} {isSetupInOnboarding && ( -