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
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
export const PLACEHOLDER_TEXT_COLOR = BaseTheme.palette.text01;
|
2018-05-07 15:03:59 +00:00
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
export const DRAWER_AVATAR_SIZE = 104;
|
2018-05-07 15:03:59 +00:00
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
const DRAWER_HEADER_HEIGHT = 220;
|
|
|
|
|
|
|
|
export const SWITCH_THUMB_COLOR = BaseTheme.palette.action04;
|
2018-05-07 15:03:59 +00:00
|
|
|
|
2021-11-17 12:54:00 +00:00
|
|
|
export const SWITCH_UNDER_COLOR = BaseTheme.palette.video01Disabled;
|
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: {
|
2021-11-11 14:32:56 +00:00
|
|
|
backgroundColor: BaseTheme.palette.screen01Header,
|
|
|
|
borderColor: BaseTheme.palette.screen01Header,
|
2018-02-02 14:50:16 +00:00
|
|
|
borderRadius: 4,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderWidth: 1,
|
2018-02-16 16:06:03 +00:00
|
|
|
height: 30,
|
2016-10-05 14:36:59 +00:00
|
|
|
justifyContent: 'center',
|
2018-02-16 16:06:03 +00:00
|
|
|
paddingHorizontal: 20
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* Join button text style.
|
|
|
|
*/
|
|
|
|
buttonText: {
|
|
|
|
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
|
|
|
},
|
|
|
|
|
2017-12-14 17:02:32 +00:00
|
|
|
/**
|
2018-02-02 14:50:16 +00:00
|
|
|
* The style of the display name label in the side bar.
|
2018-01-18 21:28:25 +00:00
|
|
|
*/
|
2018-02-02 14:50:16 +00:00
|
|
|
displayName: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2018-02-02 14:50:16 +00:00
|
|
|
fontSize: 16,
|
2018-03-29 09:47:32 +00:00
|
|
|
marginTop: BoxModel.margin,
|
2018-02-02 14:50:16 +00:00
|
|
|
textAlign: 'center'
|
2017-12-14 17:02:32 +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: {
|
|
|
|
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: {
|
2021-11-11 14:32:56 +00:00
|
|
|
backgroundColor: BaseTheme.palette.ui12,
|
|
|
|
borderColor: BaseTheme.palette.field02,
|
2020-05-18 12:07:09 +00:00
|
|
|
borderRadius: 4,
|
|
|
|
borderWidth: 1,
|
|
|
|
marginVertical: 5,
|
|
|
|
paddingHorizontal: BoxModel.padding,
|
|
|
|
paddingVertical: 2 * BoxModel.padding
|
|
|
|
},
|
|
|
|
|
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-02-02 14:50:16 +00:00
|
|
|
/**
|
|
|
|
* The style of the side bar header.
|
|
|
|
*/
|
2021-11-11 14:32:56 +00:00
|
|
|
drawerHeader: {
|
2018-03-29 09:47:32 +00:00
|
|
|
alignItems: 'center',
|
2021-11-11 14:32:56 +00:00
|
|
|
backgroundColor: BaseTheme.palette.screen01Header,
|
2018-02-02 14:50:16 +00:00
|
|
|
flexDirection: 'column',
|
2021-11-11 14:32:56 +00:00
|
|
|
height: DRAWER_HEADER_HEIGHT,
|
|
|
|
justifyContent: 'center'
|
2017-12-14 17:02:32 +00:00
|
|
|
},
|
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
drawerNavigationIcon: {
|
|
|
|
height: BaseTheme.spacing[6],
|
2022-02-08 15:09:22 +00:00
|
|
|
marginLeft: BaseTheme.spacing[3],
|
2021-11-11 14:32:56 +00:00
|
|
|
width: BaseTheme.spacing[6]
|
2017-12-14 17:02:32 +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',
|
|
|
|
paddingHorizontal: 5
|
|
|
|
},
|
|
|
|
|
|
|
|
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'
|
|
|
|
},
|
|
|
|
|
|
|
|
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'
|
2022-01-25 12:55:57 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Style for screen container.
|
|
|
|
*/
|
|
|
|
screenContainer: {
|
|
|
|
flex: 1
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
2019-08-30 16:39:06 +00:00
|
|
|
};
|