Browse Source

Splash logo metrics

pull/8/head
Tim Glasgow 2 years ago
parent
commit
ed540ae799
  1. 5
      squarenotsquare/src/screens/styles/AppStyles.js
  2. 3
      squarenotsquare/src/themes/Colors.js
  3. 15
      squarenotsquare/src/themes/Metrics.js

5
squarenotsquare/src/screens/styles/AppStyles.js

@ -69,5 +69,10 @@ export const styles = StyleSheet.create({
body: { body: {
backgroundColor: Colors.material.light, backgroundColor: Colors.material.light,
},
splashLogo: {
width: Metrics.images.splashLogo.width,
height: Metrics.images.splashLogo.height
} }
}) })

3
squarenotsquare/src/themes/Colors.js

@ -9,6 +9,9 @@ class AppColors {
//400 //400
blue400: '#5c6bc0', blue400: '#5c6bc0',
grey400: '#bdbdbd', grey400: '#bdbdbd',
green400: '#66bb6a',
green400light: '#98ee99',
green400dark: '#338a3e',
//600 //600
grey600: '#757575', grey600: '#757575',

15
squarenotsquare/src/themes/Metrics.js

@ -15,6 +15,14 @@ class AppMetrics {
this.screenHeight = height; this.screenHeight = height;
} }
this.shadows = {
elevation: 10,
offsetWidth: 10,
offsetHeight: 10,
opacity: 1,
radius: 0
}
this.screenSections = { this.screenSections = {
headerHeight: this.normalize(20), headerHeight: this.normalize(20),
sectionWidth: this.screenWidth sectionWidth: this.screenWidth
@ -23,6 +31,13 @@ class AppMetrics {
this.icons = { this.icons = {
splashIcon: this.normalize(100) splashIcon: this.normalize(100)
} }
this.images = {
splashLogo: {
width: this.screenWidth * 0.33,
height: this.screenWidth * 0.33
}
}
} }
normalize(size){ normalize(size){

Loading…
Cancel
Save