2022-07-28 10:28:29 +03:00
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
|
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
export const ANDROID_UNDERLINE_COLOR = 'transparent';
|
2022-07-12 15:28:20 +03:00
|
|
|
export const PLACEHOLDER_COLOR = BaseTheme.palette.focus01;
|
2019-11-13 09:57:42 +01:00
|
|
|
|
2021-05-11 11:01:45 +03:00
|
|
|
const TEXT_SIZE = 14;
|
2018-02-02 15:48:43 +01:00
|
|
|
|
2022-07-28 10:28:29 +03:00
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
/**
|
2018-02-26 10:14:46 -06:00
|
|
|
* The styles of the native components of the feature {@code settings}.
|
2018-02-02 15:48:43 +01:00
|
|
|
*/
|
2020-03-25 11:51:35 +01:00
|
|
|
export default {
|
2021-11-11 16:32:56 +02:00
|
|
|
|
2022-07-28 10:28:29 +03:00
|
|
|
avatarContainer: {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
height: 180,
|
|
|
|
|
justifyContent: 'center'
|
|
|
|
|
},
|
|
|
|
|
|
2021-11-11 16:32:56 +02:00
|
|
|
/**
|
|
|
|
|
* Style for screen container.
|
|
|
|
|
*/
|
|
|
|
|
settingsViewContainer: {
|
2022-02-21 16:06:02 +02:00
|
|
|
backgroundColor: BaseTheme.palette.ui01,
|
2021-11-11 16:32:56 +02:00
|
|
|
flex: 1
|
|
|
|
|
},
|
|
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
/**
|
|
|
|
|
* Standardized style for a field container {@code View}.
|
|
|
|
|
*/
|
|
|
|
|
fieldContainer: {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flexDirection: 'row',
|
2021-05-11 11:01:45 +03:00
|
|
|
minHeight: 56,
|
2018-02-02 15:48:43 +01:00
|
|
|
paddingHorizontal: 8
|
|
|
|
|
},
|
|
|
|
|
|
2020-03-25 11:51:35 +01:00
|
|
|
/**
|
|
|
|
|
* * Appended style for column layout fields.
|
|
|
|
|
*/
|
|
|
|
|
fieldContainerColumn: {
|
|
|
|
|
alignItems: 'flex-start',
|
2021-05-11 11:01:45 +03:00
|
|
|
flexDirection: 'column'
|
2020-03-25 11:51:35 +01:00
|
|
|
},
|
|
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
/**
|
|
|
|
|
* Standard container for a {@code View} containing a field label.
|
|
|
|
|
*/
|
|
|
|
|
fieldLabelContainer: {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flexDirection: 'row',
|
2021-05-11 11:01:45 +03:00
|
|
|
paddingLeft: 8
|
2018-02-02 15:48:43 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Text of the field labels on the form.
|
|
|
|
|
*/
|
|
|
|
|
fieldLabelText: {
|
|
|
|
|
fontSize: TEXT_SIZE
|
|
|
|
|
},
|
|
|
|
|
|
2020-03-25 11:51:35 +01:00
|
|
|
/**
|
|
|
|
|
* Appended style for column layout fields.
|
|
|
|
|
*/
|
|
|
|
|
fieldLabelTextColumn: {
|
|
|
|
|
fontSize: 12
|
|
|
|
|
},
|
|
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
/**
|
|
|
|
|
* Field container style for all but last row {@code View}.
|
|
|
|
|
*/
|
|
|
|
|
fieldSeparator: {
|
|
|
|
|
borderBottomWidth: 1,
|
2022-07-12 15:28:20 +03:00
|
|
|
borderColor: BaseTheme.palette.ui05
|
2018-02-02 15:48:43 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Style for the {@code View} containing each
|
|
|
|
|
* field values (the actual field).
|
|
|
|
|
*/
|
|
|
|
|
fieldValueContainer: {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flex: 1,
|
|
|
|
|
flexDirection: 'row',
|
2021-05-11 11:01:45 +03:00
|
|
|
justifyContent: 'flex-end',
|
|
|
|
|
paddingRight: 8
|
2018-02-02 15:48:43 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-16 11:59:33 -04:00
|
|
|
* Style for the form section separator titles.
|
2018-02-02 15:48:43 +01:00
|
|
|
*/
|
2023-01-23 17:58:11 +02:00
|
|
|
|
|
|
|
|
formSectionTitleContent: {
|
2022-02-21 16:06:02 +02:00
|
|
|
backgroundColor: BaseTheme.palette.ui02,
|
2023-01-23 17:58:11 +02:00
|
|
|
paddingVertical: BaseTheme.spacing[1]
|
2021-05-11 11:01:45 +03:00
|
|
|
},
|
|
|
|
|
|
2022-02-21 16:06:02 +02:00
|
|
|
formSectionTitleText: {
|
2023-01-23 17:58:11 +02:00
|
|
|
...BaseTheme.typography.bodyShortRegular,
|
2022-11-08 17:46:46 +02:00
|
|
|
color: BaseTheme.palette.text01,
|
|
|
|
|
opacity: 0.6,
|
|
|
|
|
textAlign: 'center'
|
2021-05-11 11:01:45 +03:00
|
|
|
},
|
|
|
|
|
|
2018-02-02 15:48:43 +01:00
|
|
|
/**
|
|
|
|
|
* Global {@code Text} color for the components.
|
|
|
|
|
*/
|
|
|
|
|
text: {
|
2022-07-07 15:29:18 +03:00
|
|
|
color: BaseTheme.palette.text01
|
2021-05-11 11:01:45 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Text input container style.
|
|
|
|
|
*/
|
2022-11-08 17:46:46 +02:00
|
|
|
customContainer: {
|
2022-01-07 13:31:02 +02:00
|
|
|
marginBottom: BaseTheme.spacing[3],
|
|
|
|
|
marginHorizontal: BaseTheme.spacing[3],
|
|
|
|
|
marginTop: BaseTheme.spacing[2]
|
2018-02-02 15:48:43 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Standard text input field style.
|
|
|
|
|
*/
|
|
|
|
|
textInputField: {
|
2021-05-11 11:01:45 +03:00
|
|
|
color: BaseTheme.palette.field01,
|
2018-02-02 15:48:43 +01:00
|
|
|
flex: 1,
|
|
|
|
|
fontSize: TEXT_SIZE,
|
|
|
|
|
textAlign: 'right'
|
2020-03-25 11:51:35 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Appended style for column layout fields.
|
|
|
|
|
*/
|
|
|
|
|
textInputFieldColumn: {
|
|
|
|
|
backgroundColor: 'rgb(245, 245, 245)',
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
marginVertical: 5,
|
|
|
|
|
paddingVertical: 3,
|
|
|
|
|
textAlign: 'left'
|
2022-07-28 10:28:29 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Style for screen container.
|
|
|
|
|
*/
|
|
|
|
|
screenContainer: {
|
|
|
|
|
flex: 1
|
2023-03-13 16:40:14 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
linksButton: {
|
|
|
|
|
alignSelf: 'center',
|
|
|
|
|
maxWidth: 400,
|
|
|
|
|
width: 'auto'
|
2018-02-02 15:48:43 +01:00
|
|
|
}
|
2020-03-25 11:51:35 +01:00
|
|
|
};
|