2022-07-28 07:28:29 +00:00
|
|
|
import { BoxModel } from '../../../base/styles';
|
|
|
|
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-23 13:35:05 +00:00
|
|
|
export const ENABLED_TRACK_COLOR = BaseTheme.palette.action01;
|
2022-02-22 16:39:06 +00:00
|
|
|
export const DISABLED_TRACK_COLOR = BaseTheme.palette.switch01Disabled;
|
2021-05-11 08:01:45 +00:00
|
|
|
export const THUMB_COLOR = BaseTheme.palette.field02;
|
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'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of the display name label.
|
|
|
|
*/
|
|
|
|
avatarLabel: {
|
|
|
|
color: BaseTheme.palette.text01,
|
|
|
|
fontSize: 16,
|
|
|
|
marginTop: BoxModel.margin,
|
|
|
|
textAlign: '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: {
|
|
|
|
color: BaseTheme.palette.text01
|
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
|
|
|
},
|
|
|
|
|
2022-07-28 07:28:29 +00:00
|
|
|
sectionLink: {
|
|
|
|
...BaseTheme.typography.bodyShortBoldLarge,
|
|
|
|
color: BaseTheme.palette.link01,
|
|
|
|
margin: BaseTheme.spacing[3],
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
sectionLinkContainer: {
|
|
|
|
margin: BaseTheme.spacing[3]
|
|
|
|
},
|
|
|
|
|
|
|
|
sectionLinkText: {
|
|
|
|
...BaseTheme.typography.bodyShortBoldLarge,
|
|
|
|
color: BaseTheme.palette.link01,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
textInputContainer: {
|
|
|
|
flex: 1,
|
2022-01-07 11:31:02 +00:00
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
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
|
|
|
};
|