2019-01-29 19:52:56 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
import { isIOS } from '../../utils/deviceInfo';
|
2019-03-29 19:36:07 +00:00
|
|
|
import {
|
2019-06-10 16:22:35 +00:00
|
|
|
COLOR_SEPARATOR, COLOR_TEXT, COLOR_PRIMARY, COLOR_WHITE, COLOR_TEXT_DESCRIPTION
|
2019-03-29 19:36:07 +00:00
|
|
|
} from '../../constants/colors';
|
|
|
|
|
|
|
|
import sharedStyles from '../Styles';
|
2017-12-08 19:13:21 +00:00
|
|
|
|
|
|
|
export default StyleSheet.create({
|
|
|
|
container: {
|
2018-08-31 16:46:33 +00:00
|
|
|
flex: 1,
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: isIOS ? COLOR_WHITE : '#E1E5E8'
|
2017-12-08 19:13:21 +00:00
|
|
|
},
|
|
|
|
list: {
|
|
|
|
width: '100%',
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE
|
2017-12-08 19:13:21 +00:00
|
|
|
},
|
|
|
|
actionButtonIcon: {
|
|
|
|
fontSize: 20,
|
|
|
|
height: 22,
|
|
|
|
color: 'white'
|
|
|
|
},
|
2018-08-01 19:35:06 +00:00
|
|
|
loading: {
|
|
|
|
flex: 1
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
dropdownContainerHeader: {
|
|
|
|
height: 41,
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
2019-03-27 20:06:57 +00:00
|
|
|
borderColor: COLOR_SEPARATOR,
|
2018-08-31 16:46:33 +00:00
|
|
|
alignItems: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: isIOS ? COLOR_WHITE : '#54585E',
|
2018-08-31 16:46:33 +00:00
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
sortToggleContainerClose: {
|
|
|
|
position: 'absolute',
|
|
|
|
top: 0,
|
|
|
|
width: '100%'
|
|
|
|
},
|
|
|
|
sortToggleText: {
|
|
|
|
fontSize: 15,
|
|
|
|
flex: 1,
|
2019-03-29 19:36:07 +00:00
|
|
|
marginLeft: 15,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
dropdownContainer: {
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE,
|
2018-08-31 16:46:33 +00:00
|
|
|
width: '100%',
|
|
|
|
position: 'absolute',
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
sortItemButton: {
|
|
|
|
height: 57,
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
sortItemContainer: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
sortItemText: {
|
|
|
|
fontSize: 18,
|
2019-03-29 19:36:07 +00:00
|
|
|
flex: 1,
|
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textRegular
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
backdrop: {
|
|
|
|
...StyleSheet.absoluteFill,
|
|
|
|
backgroundColor: '#000000'
|
|
|
|
},
|
|
|
|
sortSeparator: {
|
|
|
|
height: StyleSheet.hairlineWidth,
|
2019-03-27 20:06:57 +00:00
|
|
|
backgroundColor: COLOR_SEPARATOR,
|
2018-08-31 16:46:33 +00:00
|
|
|
marginHorizontal: 15,
|
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
sortIcon: {
|
2019-03-01 16:49:11 +00:00
|
|
|
width: 22,
|
|
|
|
height: 22,
|
2018-08-31 16:46:33 +00:00
|
|
|
marginHorizontal: 15,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorDescription
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
groupTitleContainer: {
|
|
|
|
paddingHorizontal: 15,
|
|
|
|
paddingTop: 17,
|
|
|
|
paddingBottom: 10,
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: isIOS ? COLOR_WHITE : '#9ea2a8'
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
groupTitle: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: isIOS ? COLOR_TEXT : '#54585E',
|
2019-01-29 19:52:56 +00:00
|
|
|
fontSize: isIOS ? 22 : 15,
|
2018-08-31 16:46:33 +00:00
|
|
|
letterSpacing: 0.27,
|
|
|
|
flex: 1,
|
2019-03-29 19:36:07 +00:00
|
|
|
lineHeight: isIOS ? 41 : 24,
|
|
|
|
...sharedStyles.textBold
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
serverHeader: {
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
},
|
|
|
|
serverHeaderText: {
|
|
|
|
fontSize: 15,
|
2019-03-29 19:36:07 +00:00
|
|
|
marginLeft: 15,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
serverHeaderAdd: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: isIOS ? COLOR_PRIMARY : COLOR_WHITE,
|
2018-08-31 16:46:33 +00:00
|
|
|
fontSize: 15,
|
2018-09-19 14:18:32 +00:00
|
|
|
marginRight: 15,
|
2019-03-29 19:36:07 +00:00
|
|
|
paddingVertical: 10,
|
|
|
|
...sharedStyles.textRegular
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
serverItem: {
|
|
|
|
height: 68
|
|
|
|
},
|
|
|
|
serverItemContainer: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
serverIcon: {
|
|
|
|
width: 42,
|
|
|
|
height: 42,
|
|
|
|
marginHorizontal: 15,
|
|
|
|
marginVertical: 13,
|
|
|
|
borderRadius: 4,
|
|
|
|
resizeMode: 'contain'
|
|
|
|
},
|
|
|
|
serverTextContainer: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
serverName: {
|
2019-03-29 19:36:07 +00:00
|
|
|
fontSize: 18,
|
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textSemibold
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
serverUrl: {
|
|
|
|
fontSize: 15,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
checkIcon: {
|
|
|
|
marginHorizontal: 15,
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_PRIMARY
|
2018-08-31 16:46:33 +00:00
|
|
|
},
|
|
|
|
serverSeparator: {
|
|
|
|
height: StyleSheet.hairlineWidth,
|
2019-03-27 20:06:57 +00:00
|
|
|
backgroundColor: COLOR_SEPARATOR,
|
2018-08-31 16:46:33 +00:00
|
|
|
marginLeft: 72
|
2019-06-10 16:22:35 +00:00
|
|
|
},
|
|
|
|
directoryIcon: {
|
|
|
|
width: 22,
|
|
|
|
height: 22,
|
|
|
|
marginHorizontal: 15,
|
|
|
|
color: isIOS ? COLOR_PRIMARY : COLOR_TEXT_DESCRIPTION
|
|
|
|
},
|
|
|
|
directoryText: {
|
|
|
|
fontSize: 15,
|
|
|
|
flex: 1,
|
|
|
|
color: isIOS ? COLOR_PRIMARY : COLOR_TEXT_DESCRIPTION,
|
|
|
|
...sharedStyles.textRegular
|
2017-12-08 19:13:21 +00:00
|
|
|
}
|
|
|
|
});
|