Skip to content

Commit

Permalink
change screens backgrounds to hard black
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves committed Sep 19, 2023
1 parent 64552bd commit 831a0a7
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/BasicRow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const styles = StyleSheet.create({
container: castStyle.view({
marginTop: 10,
paddingVertical: 10,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
height: 'auto',
flexDirection: 'row',
}),
Expand Down
4 changes: 2 additions & 2 deletions src/components/loading/LoadingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AppSpinner } from 'components/index'

export const LoadingScreen = () => {
return (
<Modal animationType="none" transparent={true} visible={true}>
<Modal animationType="none" transparent visible>
<View
style={[
sharedStyles.flex,
Expand All @@ -21,6 +21,6 @@ export const LoadingScreen = () => {

const styles = StyleSheet.create({
activityIndicatorViewStyle: castStyle.view({
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
}),
})
2 changes: 1 addition & 1 deletion src/core/components/OfflineScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const OfflineScreen = () => {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
justifyContent: 'center',
alignItems: 'center',
},
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const screenOptionsWithHeader = (
),
headerStyle: {
height: 64 + topInset,
backgroundColor: color ?? sharedColors.secondary,
backgroundColor: color ?? sharedColors.black,
},
headerShadowVisible: false,
}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/activity/ActivityScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ActivityScreen = ({ navigation }: ActivityMainScreenProps) => {

useEffect(() => {
if (isFocused) {
dispatch(changeTopColor(sharedColors.secondary))
dispatch(changeTopColor(sharedColors.black))
}
}, [dispatch, isFocused])

Expand Down
2 changes: 1 addition & 1 deletion src/screens/contacts/ContactDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const ContactDetails = ({
const styles = StyleSheet.create({
screen: castStyle.view({
flex: 1,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
}),
scrollviewContainer: castStyle.view({
paddingBottom: 144,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/contacts/ContactFormScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const ContactFormScreen = ({
: t('contact_form_title_create'),
headerTintColor: sharedColors.white,
headerStyle: {
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
},
headerRightContainerStyle: {
paddingTop: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/screens/contacts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ContactsScreen = ({ navigation }: ContactsListScreenProps) => {

useEffect(() => {
if (isFocused) {
dispatch(changeTopColor(sharedColors.secondary))
dispatch(changeTopColor(sharedColors.black))
}
}, [dispatch, isFocused])

Expand Down Expand Up @@ -156,7 +156,7 @@ export const ContactsScreen = ({ navigation }: ContactsListScreenProps) => {
)
}>
<BasicRow
style={{ backgroundColor: sharedColors.secondary }}
style={{ backgroundColor: sharedColors.black }}
avatar={{ name: contact.name }}
label={contact.name}
secondaryLabel={
Expand Down
2 changes: 1 addition & 1 deletion src/screens/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const styles = StyleSheet.create({
}),
container: castStyle.view({
flex: 1,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
}),
text: castStyle.text({
textAlign: 'center',
Expand Down
6 changes: 3 additions & 3 deletions src/screens/rnsManager/rnsManagerStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { colors } from 'src/styles'

export const rnsManagerStyles = StyleSheet.create({
scrollContainer: castStyle.view({
backgroundColor: colors.background.black,
backgroundColor: sharedColors.black,
}),
container: castStyle.view({
flex: 1,
backgroundColor: colors.background.black,
backgroundColor: sharedColors.black,
padding: 20,
paddingTop: 50,
}),
Expand All @@ -25,7 +25,7 @@ export const rnsManagerStyles = StyleSheet.create({
justifyContent: 'space-between',
paddingVertical: 20,
paddingHorizontal: 10,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
}),
profileImageContainer: castStyle.view({
alignItems: 'center',
Expand Down
9 changes: 4 additions & 5 deletions src/screens/send/TransactionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,14 @@ export const TransactionForm = ({
style={styles.marginTop10}
firstValue={firstBalance}
secondValue={secondBalance}
color={sharedColors.secondary}
color={sharedColors.black}
error={hasEnoughBalance ? t('transaction_form_error_balance') : ''}
onSwap={onSwapBalance}
editable
handleAmountChange={value => {
if (Number(value) > maxAmount) {
return
if (Number(value) <= maxAmount) {
handleAmountChange(value, balanceInverted)
}
handleAmountChange(value, balanceInverted)
}}
/>
<Input
Expand Down Expand Up @@ -440,7 +439,7 @@ const styles = StyleSheet.create({
}),
buttonCancel: castStyle.view({
marginTop: 10,
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
}),
assetToggleRow: castStyle.view({
flexDirection: 'row',
Expand Down
2 changes: 1 addition & 1 deletion src/screens/settings/WalletBackup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const WalletBackup = (_: Props) => {

const styles = StyleSheet.create({
container: castStyle.view({
backgroundColor: sharedColors.secondary,
backgroundColor: sharedColors.black,
paddingHorizontal: 24,
}),
content: castStyle.view({
Expand Down
2 changes: 1 addition & 1 deletion src/screens/walletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const WalletConnectScreen = ({ route }: Props) => {

useEffect(() => {
if (isFocused) {
dispatch(changeTopColor(sharedColors.secondary))
dispatch(changeTopColor(sharedColors.black))
}
}, [dispatch, isFocused])

Expand Down

0 comments on commit 831a0a7

Please sign in to comment.