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