Skip to content

Commit

Permalink
ui fix: background, home logo, padding
Browse files Browse the repository at this point in the history
  • Loading branch information
devintegral4 committed Nov 15, 2019
1 parent c75bc4c commit 73162cf
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 84 deletions.
8 changes: 4 additions & 4 deletions FantomWallet/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ android {
}

defaultConfig {
applicationId "com.fantomwallet"
applicationId "com.fantomwallet.foundation"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionCode 3
versionName "1.0"
}
splits {
Expand Down Expand Up @@ -67,8 +67,8 @@ android {
}

dependencies {
implementation project(':react-native-gesture-handler')
implementation project(':react-native-reanimated')
implementation project(':react-native-gesture-handler')
implementation project(':react-native-reanimated')
compile project(':react-native-udp')
compile project(':react-native-tcp')
compile project(':react-native-os')
Expand Down
4 changes: 2 additions & 2 deletions FantomWallet/ios/FantomWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0.20;
CURRENT_PROJECT_VERSION = 1.0.21;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = Z9Z83R4W7B;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -1750,7 +1750,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0.20;
CURRENT_PROJECT_VERSION = 1.0.21;
DEVELOPMENT_TEAM = Z9Z83R4W7B;
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand Down
3 changes: 3 additions & 0 deletions FantomWallet/src/navigation/RootNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const RootNavigator = createStackNavigator(
},
{
headerMode: 'none',
cardStyle: {
backgroundColor: '#111',
},
},
);

Expand Down
5 changes: 2 additions & 3 deletions FantomWallet/src/views/Home/Deposit/depositViewInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export const DepositViewInfoContainer = ({ publicKey, setAlert }: Props) => {
return (
<ScrollView
ref={scrollView}
style={styles.fantomViewStyle}
style={styles.scroll}
contentContainerStyle={styles.scrollContent}
showsVerticalScrollIndicator={false}
>
{/* QR code */}
Expand Down Expand Up @@ -98,8 +99,6 @@ export const DepositViewInfoContainer = ({ publicKey, setAlert }: Props) => {
</TouchableOpacity>
<Text style={styles.confirmTextStyle}>Share</Text>
</View>

<View style={{ height: DEVICE_HEIGHT * 0.15, marginBottom: 10 }} />
</ScrollView >
);
};
Expand Down
7 changes: 5 additions & 2 deletions FantomWallet/src/views/Home/Deposit/depositViewInfo/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import { StyleSheet } from 'react-native';
import { DEVICE_HEIGHT, DEVICE_WIDTH } from '~/common/constants';

export default StyleSheet.create({
fantomViewStyle: {
height: DEVICE_HEIGHT,
scroll: {
height: '100%',
},
scrollContent: {
paddingBottom: 100,
},
amountDisplayStyle: {
backgroundColor: '#fff',
Expand Down
9 changes: 4 additions & 5 deletions FantomWallet/src/views/Home/Deposit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import BackgroundIcon from '~/images/BackgroundIcon.png';
* To Display DepositTab related tasks
*/
export default () => (
<View style={styles.depositViewStyle}>
<View style={styles.depositScreenStyle}>
<Image style={styles.backgroundIconStyle} source={BackgroundIcon} resizeMode="contain" />
<DepositViewInfo />
</View>
<View style={styles.depositScreenStyle}>
<Image style={styles.backgroundIconStyle} source={BackgroundIcon} resizeMode="contain" />
<DepositViewInfo />
</View>

);

18 changes: 5 additions & 13 deletions FantomWallet/src/views/Home/Deposit/styles.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
import { StyleSheet, Platform } from 'react-native';
import { DEVICE_HEIGHT, DEVICE_WIDTH } from '~/common/constants';

const isAndroid = Platform.OS === 'android';
export default StyleSheet.create({
depositViewStyle: {
height: DEVICE_HEIGHT,
width: DEVICE_WIDTH,
backgroundColor: 'rgb(14,14,18)',
},
textViewStyle: {},
depositScreenStyle: {
width: DEVICE_WIDTH,
height: DEVICE_HEIGHT * 0.84,
flex: 1,
backgroundColor: 'rgb(14,14,18)',
},
backgroundIconStyle: {
width: DEVICE_WIDTH * 0.45,
height: DEVICE_HEIGHT * 0.85,
position: 'absolute',
justifyContent: 'center',
alignItems: 'center',
width: '45%',
height: '85%',
top: 0,
position: 'absolute',
opacity: !isAndroid ? 0.03 : 0.02,
right: -((DEVICE_WIDTH * 0.3) / 2),
right: '-15%',
},
});
23 changes: 10 additions & 13 deletions FantomWallet/src/views/Home/Wallet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,16 @@ export const Wallet = ({
}, []);

return (
<View style={styles.walletViewStyle}>
<View style={styles.walletScreenStyle}>
<WalletView
balance={balance}
navigation={navigation}
transactionData={history}
isLoading={isLoading}
onRefresh={getData}
/>
<View pointerEvents="box-none">
<Image style={styles.backgroundImgStyle} source={BackgroundImage} resizeMode="contain" />
</View>
</View>
<View style={styles.walletScreenStyle}>
<Image style={styles.backgroundImgStyle} source={BackgroundImage} resizeMode="contain" />
<WalletView
balance={balance}
navigation={navigation}
transactionData={history}
isLoading={isLoading}
onRefresh={getData}
/>
<View pointerEvents="box-none" />
</View>
);
};
Expand Down
20 changes: 5 additions & 15 deletions FantomWallet/src/views/Home/Wallet/styles.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
import { Platform, StyleSheet } from 'react-native';
import { DEVICE_HEIGHT, DEVICE_WIDTH } from '~/common/constants';

const isIOS = Platform.OS === 'ios';

export default StyleSheet.create({
walletViewStyle: {
height: DEVICE_HEIGHT,
width: DEVICE_WIDTH,
backgroundColor: 'rgb(14,14,18)',
},
textViewStyle: {},
arrowNavigationStyle: {
backgroundColor: '#fff',
},
walletScreenStyle: {
flex: 1,
backgroundColor: 'white',
backgroundColor: 'rgb(14,14,18)',
},
backgroundImgStyle: {
width: DEVICE_WIDTH * 0.45,
height: DEVICE_HEIGHT * 0.85,
position: 'absolute',
justifyContent: 'center',
alignItems: 'center',
width: '45%',
height: '85%',
top: 0,
position: 'absolute',
opacity: isIOS ? 0.03 : 0.02,
right: -((DEVICE_WIDTH * 0.3) / 2),
right: '-15%',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const TransactionViewContainer = ({ publicKey, isLoading, fantomTransacti
</TouchableOpacity>
</View>

<View style={[openSortMenu ? { opacity: 0.2 } : '', { backgroundColor: 'rgb(14,14,18)' }]}>
<View style={openSortMenu ? { opacity: 0.2 } : ''}>
{isLoading === false && fantomTransactionArr.length === 0 && (
<EmptyTransactionEntity
title="No Transactions"
Expand Down
11 changes: 1 addition & 10 deletions FantomWallet/src/views/Home/Wallet/walletView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,11 @@ export const WalletNavigationBar = ({
isLoading,
navigation,
onRefresh,
}: Props) => {
const tabRenderInfo = 'Point';

// coinst handleSelectedTab = (index, tabRenderInfo) => {
// setTabRenderInfo(tabRenderInfo)
// }

return (
}: Props) => (
<View style={styles.mainContainerStyle}>
<View style={styles.tabInfoStyle}>
<WalletViewInfo
navigation={navigation}
selectedTab={tabRenderInfo}
transactionData={transactionData}
balance={balance}
isLoading={isLoading}
Expand All @@ -42,7 +34,6 @@ export const WalletNavigationBar = ({
</View>
</View>
);
};

const mapStateToProps = state => ({
publicKey: state.keys.publicKey,
Expand Down
4 changes: 1 addition & 3 deletions FantomWallet/src/views/Home/Wallet/walletView/styles.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import { StyleSheet } from 'react-native';

import { WHITE_COLOR, DEVICE_WIDTH, DEVICE_HEIGHT } from '~/common/constants';
import { DEVICE_WIDTH, DEVICE_HEIGHT } from '~/common/constants';

export default StyleSheet.create({
mainContainerStyle: {
height: DEVICE_HEIGHT,
backgroundColor: WHITE_COLOR,
justifyContent: 'flex-end',
},
tabInfoStyle: {
flex: 1,
},
navigationTabStyle: {
backgroundColor: 'white',
width: DEVICE_WIDTH,
flexDirection: 'row',
height: 44,
Expand Down
2 changes: 1 addition & 1 deletion FantomWallet/src/views/Home/Wallet/walletViewInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const WalletFantomScreen = ({
showsVerticalScrollIndicator={false}
refreshControl={<RefreshControl refreshing={refreshing} onRefresh={_onRefresh} />}
>
<View style={{ height: 32, backgroundColor: 'rgb(14,14,18)' }} />
<View style={{ height: 32 }} />
<BalanceView fantomTransactionArr={transactionData} balance={balance} />
<TransactionView
fantomTransactionArr={transactionData}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export default StyleSheet.create({
},
fantomViewStyle: {
height: DEVICE_HEIGHT,
backgroundColor: 'rgb(14,14,18)',
},
});
2 changes: 1 addition & 1 deletion FantomWallet/src/views/Home/Withdraw/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const Withdraw = ({ balance }: Props) => {
<ScrollView
ref={scrollView}
style={styles.scroll}
contentContainerStyle={styles.scrollContent}
showsVerticalScrollIndicator={false}
>
<View style={styles.topMarginContainer} />
Expand Down Expand Up @@ -235,7 +236,6 @@ export const Withdraw = ({ balance }: Props) => {
</TouchableOpacity>
<Text style={styles.confirmTextStyle}>Send</Text>
</View>
<View style={{ height: DEVICE_HEIGHT * 0.3 }} />
</ScrollView>
</View>
);
Expand Down
17 changes: 10 additions & 7 deletions FantomWallet/src/views/Home/Withdraw/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ const isAndroid = Platform.OS === 'android';

export default StyleSheet.create({
scroll: {
height: DEVICE_HEIGHT,
height: '100%',
},
scrollContent: {
paddingBottom: 100,
},
mainContainerStyle: {
flex: 1,
height: DEVICE_HEIGHT,
width: DEVICE_WIDTH,
backgroundColor: 'rgb(14,14,18)',
Expand All @@ -16,18 +20,17 @@ export default StyleSheet.create({
height: 32,
},
backgroundIconStyle: {
width: DEVICE_WIDTH * 0.45,
height: DEVICE_HEIGHT * 0.85,
position: 'absolute',
justifyContent: 'center',
alignItems: 'center',
top: 0,
position: 'absolute',
width: '45%',
height: '85%',
opacity: !isAndroid ? 0.03 : 0.02,
right: -((DEVICE_WIDTH * 0.3) / 2),
right: '-15%',
},
amtContainer: {
backgroundColor: 'rgb(44,52,58)',
height: 120,
height: 150,
width: DEVICE_WIDTH - 32,
alignSelf: 'center',
borderRadius: 10,
Expand Down
3 changes: 0 additions & 3 deletions FantomWallet/src/views/Welcome/CreateMnemonic/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,5 @@ export default StyleSheet.create({
bottom: 0,
width: DEVICE_WIDTH,
},
dropdown: {
backgroundColor: 'rgb(0,168,251)',
},
empty: { height: DEVICE_HEIGHT * 0.15 },
});

0 comments on commit 73162cf

Please sign in to comment.