123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- import {
- BoxModel,
- ColorPalette,
- createStyleSheet,
- fixAndroidViewClipping
- } from '../../base/styles';
-
- const SIDEBAR_HEADER_HEIGHT = 150;
-
- export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
- export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
- export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
-
- /**
- * The default color of text on the WelcomePage.
- */
- const TEXT_COLOR = ColorPalette.white;
-
- /**
- * The styles of the React {@code Components} of the feature welcome including
- * {@code WelcomePage} and {@code BlankPage}.
- */
- export default createStyleSheet({
-
- /**
- * The audio-video switch itself.
- */
- audioVideoSwitch: {
- marginHorizontal: 5
- },
-
- /**
- * View that contains the audio-video switch and the labels.
- */
- audioVideoSwitchContainer: {
- flexDirection: 'row'
- },
-
- /**
- * Style of the avatar in te side bar.
- */
- avatar: {
- alignSelf: 'center',
- borderRadius: 50,
- flex: 0,
- height: 100,
- width: 100
- },
-
- /**
- * Join button style.
- */
- button: {
- backgroundColor: ColorPalette.blue,
- borderColor: ColorPalette.blue,
- borderRadius: 4,
- borderWidth: 1,
- height: 40,
- justifyContent: 'center',
- marginBottom: BoxModel.margin,
- marginTop: BoxModel.margin
- },
-
- /**
- * Join button text style.
- */
- buttonText: {
- alignSelf: 'center',
- color: ColorPalette.white,
- fontSize: 18
- },
-
- /**
- * The style of the display name label in the side bar.
- */
- displayName: {
- color: ColorPalette.white,
- fontSize: 16,
- margin: BoxModel.margin,
- textAlign: 'center'
- },
-
- /**
- * The welcome screen header style.
- */
- header: {
- justifyContent: 'space-between'
- },
-
- /**
- * Container for the items in the side bar.
- */
- itemContainer: {
- flexDirection: 'column',
- paddingTop: 10
- },
-
- /**
- * The style of the top-level container/{@code View} of
- * {@code LocalVideoTrackUnderlay}.
- */
- localVideoTrackUnderlay: fixAndroidViewClipping({
- alignSelf: 'stretch',
- backgroundColor: 'transparent',
- flex: 1
- }),
-
- /**
- * Top level screen style
- */
- page: {
- flex: 1,
- flexDirection: 'column'
- },
-
- /**
- * Container for room name input box and 'join' button.
- */
- roomContainer: {
- alignSelf: 'stretch',
- flex: 1,
- flexDirection: 'column',
- margin: BoxModel.margin,
- marginTop: BoxModel.margin * 2
- },
-
- /**
- * The body of the side bar where the items are.
- */
- sideBarBody: {
- backgroundColor: ColorPalette.white,
- flex: 1
- },
-
- /**
- * The style of the side bar header.
- */
- sideBarHeader: {
- flexDirection: 'column',
- height: SIDEBAR_HEADER_HEIGHT,
- justifyContent: 'center'
- },
-
- /**
- * 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'
- },
-
- /**
- * The icon in the side bar item touchables.
- */
- sideBarItemIcon: {
- color: ColorPalette.blueHighlight,
- fontSize: 20,
- marginRight: 15
- },
-
- /**
- * The label of the side bar item touchables.
- */
- sideBarItemText: {
- color: ColorPalette.black,
- fontWeight: 'bold'
- },
-
- /**
- * Room input style.
- */
- textInput: {
- backgroundColor: 'transparent',
- borderColor: ColorPalette.white,
- borderRadius: 4,
- borderWidth: 1,
- color: TEXT_COLOR,
- fontSize: 23,
- height: 50,
- padding: 4,
- textAlign: 'center'
- },
-
- /**
- * Application title style.
- */
- title: {
- color: TEXT_COLOR,
- fontSize: 25,
- marginBottom: 2 * BoxModel.margin,
- textAlign: 'center'
- },
-
- /**
- * The style of the top-level container of {@code WelcomePage}.
- */
- welcomePage: {
- backgroundColor: ColorPalette.blue,
- overflow: 'hidden'
- }
- });
|