2020-08-29 03:40:55 +00:00
|
|
|
import {StyleSheet} from 'react-native';
|
2020-09-03 22:27:44 +00:00
|
|
|
import {DarkTheme, DefaultTheme} from 'react-native-paper';
|
2020-09-01 02:12:32 +00:00
|
|
|
|
|
|
|
export const colors = {
|
|
|
|
...DarkTheme.colors,
|
|
|
|
primary: '#232D4B',
|
|
|
|
accent: '#E57200',
|
|
|
|
error: '#DF1E43',
|
|
|
|
notification: '#E57200',
|
|
|
|
};
|
2020-08-29 03:40:55 +00:00
|
|
|
|
2020-09-01 19:55:23 +00:00
|
|
|
const _common = StyleSheet.create({
|
2020-08-29 03:40:55 +00:00
|
|
|
container: {
|
2020-09-01 19:55:23 +00:00
|
|
|
...StyleSheet.absoluteFillObject,
|
2020-08-29 03:40:55 +00:00
|
|
|
flex: 1,
|
2020-09-01 02:12:32 +00:00
|
|
|
alignItems: 'stretch',
|
2020-08-29 03:40:55 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center',
|
2020-09-01 19:55:23 +00:00
|
|
|
padding: 40,
|
|
|
|
},
|
|
|
|
dark: {
|
|
|
|
backgroundColor: colors.primary,
|
|
|
|
color: DarkTheme.colors.text,
|
|
|
|
},
|
|
|
|
light: {
|
|
|
|
backgroundColor: DefaultTheme.colors.background,
|
|
|
|
color: DefaultTheme.colors.text,
|
2020-08-29 03:40:55 +00:00
|
|
|
},
|
|
|
|
heading: {
|
|
|
|
fontSize: 40,
|
|
|
|
padding: 40,
|
2020-09-01 02:12:32 +00:00
|
|
|
textAlign: 'center',
|
|
|
|
},
|
2020-09-01 19:55:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const styles = StyleSheet.create({
|
|
|
|
captureBox: {
|
|
|
|
borderStyle: 'solid',
|
|
|
|
borderColor: 'green',
|
|
|
|
borderWidth: 10,
|
|
|
|
height: 213,
|
|
|
|
width: 338,
|
|
|
|
borderRadius: 20,
|
2020-09-03 22:27:44 +00:00
|
|
|
},
|
2020-09-01 19:55:23 +00:00
|
|
|
centerMiddle: {
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
},
|
|
|
|
container: {
|
|
|
|
..._common.container,
|
|
|
|
..._common.dark,
|
|
|
|
},
|
|
|
|
containerDark: {
|
|
|
|
..._common.container,
|
|
|
|
..._common.dark,
|
|
|
|
},
|
|
|
|
containerLight: {
|
|
|
|
..._common.container,
|
|
|
|
..._common.light,
|
|
|
|
},
|
|
|
|
containerNoPadding: {
|
|
|
|
..._common.container,
|
|
|
|
padding: 0,
|
|
|
|
},
|
|
|
|
error: {
|
|
|
|
backgroundColor: colors.error,
|
|
|
|
color: colors.onBackground,
|
|
|
|
fontSize: 20,
|
|
|
|
},
|
|
|
|
subtitle: {
|
|
|
|
color: colors.onBackground,
|
|
|
|
fontSize: 20,
|
|
|
|
padding: 20,
|
|
|
|
textAlign: 'center',
|
|
|
|
},
|
|
|
|
heading: {
|
|
|
|
..._common.heading,
|
|
|
|
color: colors.onBackground,
|
|
|
|
},
|
|
|
|
headingInverse: {
|
|
|
|
..._common.heading,
|
|
|
|
color: DefaultTheme.colors.text,
|
|
|
|
},
|
2020-09-01 02:12:32 +00:00
|
|
|
btnLg: {
|
|
|
|
fontSize: 20,
|
|
|
|
padding: 4,
|
|
|
|
margin: 4,
|
2020-08-29 03:40:55 +00:00
|
|
|
},
|
2020-09-01 19:55:23 +00:00
|
|
|
btnWhite: {
|
|
|
|
color: DefaultTheme.colors.text,
|
|
|
|
backgroundColor: DefaultTheme.colors.background
|
|
|
|
},
|
2020-08-29 03:40:55 +00:00
|
|
|
button: {
|
2020-09-01 02:12:32 +00:00
|
|
|
color: colors.text,
|
2020-08-29 03:40:55 +00:00
|
|
|
},
|
2020-09-01 19:55:23 +00:00
|
|
|
fullScreen: {
|
|
|
|
...StyleSheet.absoluteFillObject,
|
|
|
|
flex: 1,
|
|
|
|
alignItems: 'stretch',
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center',
|
|
|
|
},
|
2020-08-29 03:40:55 +00:00
|
|
|
label: {
|
|
|
|
fontSize: 16,
|
|
|
|
},
|
|
|
|
preview: {
|
|
|
|
flex: 1,
|
2020-09-01 02:12:32 +00:00
|
|
|
backgroundColor: colors.onBackground,
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'space-evenly',
|
|
|
|
margin: 20,
|
|
|
|
padding: 20,
|
|
|
|
borderRadius: 5,
|
|
|
|
height: 260,
|
|
|
|
},
|
|
|
|
printPreview: {
|
|
|
|
flex: 1,
|
|
|
|
borderWidth: 1,
|
|
|
|
borderColor: '#000',
|
|
|
|
borderRadius: 5,
|
|
|
|
backgroundColor: colors.onBackground,
|
2020-08-29 03:40:55 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center',
|
2020-09-01 02:12:32 +00:00
|
|
|
margin: 20,
|
|
|
|
padding: 20,
|
|
|
|
},
|
|
|
|
surface: {
|
|
|
|
...StyleSheet.absoluteFillObject,
|
|
|
|
padding: 8,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
backgroundColor: colors.primary,
|
2020-09-01 19:55:23 +00:00
|
|
|
},
|
|
|
|
safeAreaView: {
|
|
|
|
flex: 1
|
|
|
|
},
|
2020-09-06 03:16:46 +00:00
|
|
|
radio: {
|
|
|
|
backgroundColor: '#EEEEEE',
|
|
|
|
},
|
2020-09-01 19:55:23 +00:00
|
|
|
row: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
},
|
|
|
|
settings: {
|
2020-09-06 03:16:46 +00:00
|
|
|
// flex: 1,
|
|
|
|
// alignItems: 'stretch',
|
|
|
|
// flexDirection: 'column',
|
|
|
|
// justifyContent: 'center',
|
2020-09-01 19:55:23 +00:00
|
|
|
padding: 80,
|
|
|
|
backgroundColor: DefaultTheme.colors.background,
|
|
|
|
color: DefaultTheme.colors.text,
|
|
|
|
},
|
2020-08-29 03:40:55 +00:00
|
|
|
});
|