2018-05-07 15:03:59 +00:00
|
|
|
// @flow
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
2019-10-18 12:23:20 +00:00
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
import { BoxModel } from '../../base/styles';
|
|
|
|
import BaseTheme from '../../base/ui/components/BaseTheme.native';
|
2018-02-02 14:50:16 +00:00
|
|
|
|
2022-07-28 07:28:29 +00:00
|
|
|
export const AVATAR_SIZE = 104;
|
2017-12-20 00:49:36 +00:00
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2016-11-29 20:04:56 +00:00
|
|
|
* The default color of text on the WelcomePage.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2021-11-11 14:32:56 +00:00
|
|
|
const TEXT_COLOR = BaseTheme.palette.text01;
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The styles of the React {@code Components} of the feature welcome including
|
|
|
|
* {@code WelcomePage} and {@code BlankPage}.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2019-08-30 16:39:06 +00:00
|
|
|
export default {
|
2018-02-02 14:50:16 +00:00
|
|
|
|
2021-11-23 14:06:59 +00:00
|
|
|
blankPageText: {
|
|
|
|
color: TEXT_COLOR,
|
|
|
|
fontSize: 18
|
|
|
|
},
|
|
|
|
|
2019-10-18 12:23:20 +00:00
|
|
|
/**
|
|
|
|
* View that is rendered when there is no welcome page.
|
|
|
|
*/
|
|
|
|
blankPageWrapper: {
|
|
|
|
...StyleSheet.absoluteFillObject,
|
|
|
|
alignItems: 'center',
|
2021-11-23 14:06:59 +00:00
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
2019-10-18 12:23:20 +00:00
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2016-11-29 20:04:56 +00:00
|
|
|
* Join button style.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
|
|
|
button: {
|
2022-11-09 10:59:17 +00:00
|
|
|
backgroundColor: BaseTheme.palette.action01,
|
|
|
|
borderColor: BaseTheme.palette.action01,
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderWidth: 1,
|
2022-11-09 10:59:17 +00:00
|
|
|
height: BaseTheme.spacing[7],
|
2016-10-05 14:36:59 +00:00
|
|
|
justifyContent: 'center',
|
2022-11-09 10:59:17 +00:00
|
|
|
paddingHorizontal: BaseTheme.spacing[4]
|
2018-02-16 16:06:03 +00:00
|
|
|
},
|
|
|
|
|
2022-11-09 10:59:17 +00:00
|
|
|
joinButtonLabel: {
|
|
|
|
textTransform: 'uppercase'
|
|
|
|
},
|
|
|
|
|
|
|
|
joinButtonText: {
|
2016-10-05 14:36:59 +00:00
|
|
|
alignSelf: 'center',
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2018-02-16 16:06:03 +00:00
|
|
|
fontSize: 14
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
2020-03-27 12:48:33 +00:00
|
|
|
enterRoomText: {
|
|
|
|
color: TEXT_COLOR,
|
|
|
|
fontSize: 18,
|
|
|
|
marginBottom: BoxModel.margin
|
|
|
|
},
|
|
|
|
|
2018-02-16 16:06:03 +00:00
|
|
|
/**
|
|
|
|
* Container for the button on the hint box.
|
|
|
|
*/
|
|
|
|
hintButtonContainer: {
|
|
|
|
flexDirection: 'row',
|
2018-02-26 16:14:46 +00:00
|
|
|
justifyContent: 'center'
|
2018-02-16 16:06:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Container for the hint box.
|
|
|
|
*/
|
|
|
|
hintContainer: {
|
|
|
|
flexDirection: 'column',
|
2020-05-18 12:07:09 +00:00
|
|
|
overflow: 'hidden'
|
2018-02-16 16:06:03 +00:00
|
|
|
},
|
|
|
|
|
2018-04-04 12:50:12 +00:00
|
|
|
/**
|
|
|
|
* The text of the hint box.
|
|
|
|
*/
|
|
|
|
hintText: {
|
2022-11-09 10:59:17 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2018-04-04 12:50:12 +00:00
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
2018-02-26 16:14:46 +00:00
|
|
|
/**
|
|
|
|
* Container for the text on the hint box.
|
|
|
|
*/
|
|
|
|
hintTextContainer: {
|
|
|
|
marginBottom: 2 * BoxModel.margin
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2018-02-02 14:50:16 +00:00
|
|
|
* Container for the items in the side bar.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2018-02-02 14:50:16 +00:00
|
|
|
itemContainer: {
|
|
|
|
flexDirection: 'column',
|
|
|
|
paddingTop: 10
|
2016-11-29 20:04:56 +00:00
|
|
|
},
|
|
|
|
|
2018-03-06 16:58:26 +00:00
|
|
|
/**
|
|
|
|
* A view that contains the field and hint box.
|
|
|
|
*/
|
|
|
|
joinControls: {
|
|
|
|
padding: BoxModel.padding
|
|
|
|
},
|
|
|
|
|
2020-05-18 12:07:09 +00:00
|
|
|
messageContainer: {
|
2022-11-09 10:59:17 +00:00
|
|
|
backgroundColor: BaseTheme.palette.ui03,
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
|
|
marginVertical: BaseTheme.spacing[1],
|
|
|
|
paddingHorizontal: BaseTheme.spacing[2],
|
|
|
|
paddingVertical: 2 * BaseTheme.spacing[2]
|
2020-05-18 12:07:09 +00:00
|
|
|
},
|
|
|
|
|
2022-07-28 07:28:29 +00:00
|
|
|
roomNameInputContainer: {
|
|
|
|
height: '0%'
|
|
|
|
},
|
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
/**
|
2018-02-26 16:14:46 +00:00
|
|
|
* Top-level screen style.
|
2018-02-02 14:50:16 +00:00
|
|
|
*/
|
|
|
|
page: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column'
|
|
|
|
},
|
|
|
|
|
2019-06-26 14:59:20 +00:00
|
|
|
/**
|
|
|
|
* The styles for reduced UI mode.
|
|
|
|
*/
|
|
|
|
reducedUIContainer: {
|
|
|
|
alignItems: 'center',
|
2021-11-11 14:32:56 +00:00
|
|
|
backgroundColor: BaseTheme.palette.screen01Header,
|
2019-06-26 14:59:20 +00:00
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
reducedUIText: {
|
|
|
|
color: TEXT_COLOR,
|
|
|
|
fontSize: 12
|
|
|
|
},
|
|
|
|
|
2016-11-29 20:04:56 +00:00
|
|
|
/**
|
|
|
|
* Container for room name input box and 'join' button.
|
|
|
|
*/
|
|
|
|
roomContainer: {
|
2017-12-14 15:04:35 +00:00
|
|
|
alignSelf: 'stretch',
|
2022-02-08 15:09:22 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
marginHorizontal: BaseTheme.spacing[2]
|
2018-02-02 14:50:16 +00:00
|
|
|
},
|
2017-12-21 06:02:22 +00:00
|
|
|
|
2018-05-15 10:34:05 +00:00
|
|
|
/**
|
|
|
|
* The container of the label of the audio-video switch.
|
|
|
|
*/
|
|
|
|
switchLabel: {
|
|
|
|
paddingHorizontal: 3
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* Room input style.
|
|
|
|
*/
|
|
|
|
textInput: {
|
|
|
|
backgroundColor: 'transparent',
|
2021-11-11 14:32:56 +00:00
|
|
|
borderColor: BaseTheme.palette.field02,
|
2018-02-02 14:50:16 +00:00
|
|
|
borderRadius: 4,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderWidth: 1,
|
2016-11-29 20:04:56 +00:00
|
|
|
color: TEXT_COLOR,
|
2016-10-05 14:36:59 +00:00
|
|
|
fontSize: 23,
|
|
|
|
height: 50,
|
|
|
|
padding: 4,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Application title style.
|
|
|
|
*/
|
|
|
|
title: {
|
2016-11-29 20:04:56 +00:00
|
|
|
color: TEXT_COLOR,
|
2016-10-05 14:36:59 +00:00
|
|
|
fontSize: 25,
|
2016-11-29 20:04:56 +00:00
|
|
|
marginBottom: 2 * BoxModel.margin,
|
2016-10-05 14:36:59 +00:00
|
|
|
textAlign: 'center'
|
2017-09-05 22:45:20 +00:00
|
|
|
},
|
|
|
|
|
2020-05-18 12:07:09 +00:00
|
|
|
insecureRoomNameWarningContainer: {
|
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'row',
|
2022-11-09 10:59:17 +00:00
|
|
|
paddingHorizontal: BaseTheme.spacing[1]
|
2020-05-18 12:07:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
insecureRoomNameWarningIcon: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.warning03,
|
2020-05-18 12:07:09 +00:00
|
|
|
fontSize: 24,
|
|
|
|
marginRight: 10
|
|
|
|
},
|
|
|
|
|
|
|
|
insecureRoomNameWarningText: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.warning03,
|
2020-05-18 12:07:09 +00:00
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
|
2017-09-05 22:45:20 +00:00
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of the top-level container of {@code WelcomePage}.
|
2017-09-05 22:45:20 +00:00
|
|
|
*/
|
|
|
|
welcomePage: {
|
2021-11-17 12:54:00 +00:00
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
|
|
flex: 1,
|
|
|
|
overflow: 'hidden'
|
|
|
|
},
|
|
|
|
|
2022-11-08 15:46:46 +00:00
|
|
|
customInput: {
|
2022-11-11 15:51:16 +00:00
|
|
|
fontSize: 18,
|
2022-11-09 10:59:17 +00:00
|
|
|
letterSpacing: 0,
|
2022-11-08 15:46:46 +00:00
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
2021-11-17 12:54:00 +00:00
|
|
|
recentList: {
|
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
|
|
flex: 1,
|
|
|
|
overflow: 'hidden'
|
|
|
|
},
|
|
|
|
|
|
|
|
recentListDisabled: {
|
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
|
|
flex: 1,
|
|
|
|
opacity: 0.8,
|
2018-02-02 14:50:16 +00:00
|
|
|
overflow: 'hidden'
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
2019-08-30 16:39:06 +00:00
|
|
|
};
|