2018-05-07 15:03:59 +00:00
|
|
|
// @flow
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2018-05-07 15:03:59 +00:00
|
|
|
import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
|
2018-02-02 14:50:16 +00:00
|
|
|
|
2017-12-20 00:49:36 +00:00
|
|
|
export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
|
2018-05-07 15:03:59 +00:00
|
|
|
|
2018-03-29 09:47:32 +00:00
|
|
|
export const SIDEBAR_AVATAR_SIZE = 100;
|
2018-05-07 15:03:59 +00:00
|
|
|
|
|
|
|
const SIDEBAR_HEADER_HEIGHT = 150;
|
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
|
2018-05-07 15:03:59 +00:00
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
|
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
|
|
|
*/
|
2016-11-29 20:04:56 +00:00
|
|
|
const TEXT_COLOR = ColorPalette.white;
|
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
|
|
|
*/
|
2017-06-10 22:50:42 +00:00
|
|
|
export default createStyleSheet({
|
2018-02-02 14:50:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The audio-video switch itself.
|
|
|
|
*/
|
|
|
|
audioVideoSwitch: {
|
|
|
|
marginHorizontal: 5
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* View that contains the audio-video switch and the labels.
|
|
|
|
*/
|
|
|
|
audioVideoSwitchContainer: {
|
2018-05-15 10:34:05 +00:00
|
|
|
alignItems: 'center',
|
2018-02-02 14:50:16 +00:00
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
|
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: {
|
2018-02-02 14:50:16 +00:00
|
|
|
backgroundColor: ColorPalette.blue,
|
|
|
|
borderColor: ColorPalette.blue,
|
|
|
|
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
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders the button visually disabled.
|
|
|
|
*/
|
|
|
|
buttonDisabled: {
|
|
|
|
backgroundColor: '#cccccc',
|
|
|
|
borderColor: '#999999'
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Join button text style.
|
|
|
|
*/
|
|
|
|
buttonText: {
|
|
|
|
alignSelf: 'center',
|
2018-02-02 14:50:16 +00:00
|
|
|
color: ColorPalette.white,
|
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: {
|
|
|
|
color: ColorPalette.white,
|
|
|
|
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
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2018-02-02 14:50:16 +00:00
|
|
|
* The welcome screen header style.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2018-02-02 14:50:16 +00:00
|
|
|
header: {
|
|
|
|
justifyContent: 'space-between'
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
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: {
|
|
|
|
backgroundColor: ColorPalette.white,
|
|
|
|
borderColor: ColorPalette.white,
|
|
|
|
borderRadius: 4,
|
|
|
|
borderWidth: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
marginVertical: 5,
|
|
|
|
overflow: 'hidden',
|
|
|
|
paddingHorizontal: BoxModel.padding,
|
|
|
|
paddingVertical: 2 * BoxModel.padding
|
|
|
|
},
|
|
|
|
|
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
|
|
|
|
},
|
|
|
|
|
2017-09-05 22:45:20 +00:00
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of the top-level container/{@code View} of
|
|
|
|
* {@code LocalVideoTrackUnderlay}.
|
2017-09-05 22:45:20 +00:00
|
|
|
*/
|
2018-02-07 22:12:02 +00:00
|
|
|
localVideoTrackUnderlay: {
|
2017-09-05 22:45:20 +00:00
|
|
|
alignSelf: 'stretch',
|
|
|
|
backgroundColor: 'transparent',
|
2017-09-06 13:22:39 +00:00
|
|
|
flex: 1
|
2018-02-07 22:12:02 +00:00
|
|
|
},
|
2017-09-05 22:45:20 +00:00
|
|
|
|
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',
|
|
|
|
backgroundColor: ColorPalette.blue,
|
|
|
|
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',
|
2018-02-08 18:50:19 +00:00
|
|
|
flexDirection: 'column'
|
2018-02-02 14:50:16 +00:00
|
|
|
},
|
2017-12-21 06:02:22 +00:00
|
|
|
|
2019-03-20 21:23:19 +00:00
|
|
|
/**
|
|
|
|
* Container of the side bar.
|
|
|
|
*/
|
|
|
|
sideBar: {
|
|
|
|
width: 250
|
|
|
|
},
|
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
/**
|
|
|
|
* The body of the side bar where the items are.
|
|
|
|
*/
|
|
|
|
sideBarBody: {
|
|
|
|
backgroundColor: ColorPalette.white,
|
|
|
|
flex: 1
|
|
|
|
},
|
2017-12-21 06:02:22 +00:00
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
/**
|
|
|
|
* The style of the side bar header.
|
|
|
|
*/
|
|
|
|
sideBarHeader: {
|
2018-03-29 09:47:32 +00:00
|
|
|
alignItems: 'center',
|
2018-02-02 14:50:16 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
height: SIDEBAR_HEADER_HEIGHT,
|
2018-03-29 09:47:32 +00:00
|
|
|
justifyContent: 'center',
|
|
|
|
padding: BoxModel.padding
|
2018-02-02 14:50:16 +00:00
|
|
|
},
|
2017-12-21 06:02:22 +00:00
|
|
|
|
2018-02-02 14:50:16 +00:00
|
|
|
/**
|
|
|
|
* Style of the menu items in the side bar.
|
|
|
|
*/
|
|
|
|
sideBarItem: {
|
|
|
|
padding: 13
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The View inside the side bar buttons (icon + text).
|
|
|
|
*/
|
|
|
|
sideBarItemButtonContainer: {
|
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'flex-start'
|
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 icon in the side bar item touchables.
|
2018-01-18 21:28:25 +00:00
|
|
|
*/
|
2018-02-02 14:50:16 +00:00
|
|
|
sideBarItemIcon: {
|
|
|
|
color: ColorPalette.blueHighlight,
|
|
|
|
fontSize: 20,
|
|
|
|
marginRight: 15
|
2017-12-14 17:02:32 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2018-02-02 14:50:16 +00:00
|
|
|
* The label of the side bar item touchables.
|
2018-01-18 21:28:25 +00:00
|
|
|
*/
|
2018-02-02 14:50:16 +00:00
|
|
|
sideBarItemText: {
|
|
|
|
color: ColorPalette.black,
|
|
|
|
fontWeight: 'bold'
|
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',
|
2016-11-29 20:04:56 +00:00
|
|
|
borderColor: ColorPalette.white,
|
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
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
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: {
|
2018-02-02 14:50:16 +00:00
|
|
|
backgroundColor: ColorPalette.blue,
|
|
|
|
overflow: 'hidden'
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
|
|
|
});
|