jiti-meet/react/features/welcome/components/styles.js

312 lines
6.3 KiB
JavaScript
Raw Normal View History

// @flow
import { Dimensions, StyleSheet } from 'react-native';
2019-08-30 16:39:06 +00:00
import { BoxModel, ColorPalette } from '../../base/styles';
2018-02-02 14:50:16 +00:00
export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.5)';
export const SIDEBAR_AVATAR_SIZE = 100;
const SIDEBAR_HEADER_HEIGHT = 150;
2018-02-02 14:50:16 +00:00
export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
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
/**
* 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}.
*/
2019-08-30 16:39:06 +00:00
export default {
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: {
alignItems: 'center',
2018-02-02 14:50:16 +00:00
flexDirection: 'row'
},
/**
* View that is rendered when there is no welcome page.
*/
blankPageWrapper: {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
flex: 1,
flexDirection: 'column',
justifyContent: 'center'
},
/**
* Join button style.
*/
button: {
2018-02-02 14:50:16 +00:00
backgroundColor: ColorPalette.blue,
borderColor: ColorPalette.blue,
borderRadius: 4,
borderWidth: 1,
2018-02-16 16:06:03 +00:00
height: 30,
justifyContent: 'center',
2018-02-16 16:06:03 +00:00
paddingHorizontal: 20
},
/**
* 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
},
/**
2018-02-02 14:50:16 +00:00
* The style of the display name label in the side bar.
*/
2018-02-02 14:50:16 +00:00
displayName: {
color: ColorPalette.white,
fontSize: 16,
marginTop: BoxModel.margin,
2018-02-02 14:50:16 +00:00
textAlign: 'center'
},
enterRoomText: {
color: TEXT_COLOR,
fontSize: 18,
marginBottom: BoxModel.margin
},
/**
2018-02-02 14:50:16 +00:00
* The welcome screen header style.
*/
2018-02-02 14:50:16 +00:00
header: {
justifyContent: 'space-between'
},
2018-02-16 16:06:03 +00:00
/**
* Container for the button on the hint box.
*/
hintButtonContainer: {
flexDirection: 'row',
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
},
/**
* The text of the hint box.
*/
hintText: {
textAlign: 'center'
},
/**
* Container for the text on the hint box.
*/
hintTextContainer: {
marginBottom: 2 * BoxModel.margin
},
/**
2018-02-02 14:50:16 +00:00
* Container for the items in the side bar.
*/
2018-02-02 14:50:16 +00:00
itemContainer: {
flexDirection: 'column',
paddingTop: 10
},
/**
* A view that contains the field and hint box.
*/
joinControls: {
padding: BoxModel.padding
},
2020-05-18 12:07:09 +00:00
messageContainer: {
backgroundColor: ColorPalette.white,
borderColor: ColorPalette.white,
borderRadius: 4,
borderWidth: 1,
marginVertical: 5,
paddingHorizontal: BoxModel.padding,
paddingVertical: 2 * BoxModel.padding
},
/**
* The style of the top-level container/{@code View} of
* {@code LocalVideoTrackUnderlay}.
*/
localVideoTrackUnderlay: {
alignSelf: 'stretch',
backgroundColor: 'transparent',
flex: 1
},
2018-02-02 14:50:16 +00:00
/**
* Top-level screen style.
2018-02-02 14:50:16 +00:00
*/
page: {
flex: 1,
flexDirection: 'column'
},
/**
* The styles for reduced UI mode.
*/
reducedUIContainer: {
alignItems: 'center',
backgroundColor: ColorPalette.blue,
flex: 1,
justifyContent: 'center'
},
reducedUIText: {
color: TEXT_COLOR,
fontSize: 12
},
/**
* Container for room name input box and 'join' button.
*/
roomContainer: {
alignSelf: 'stretch',
2018-02-08 18:50:19 +00:00
flexDirection: 'column'
2018-02-02 14:50:16 +00:00
},
/**
* Container of the side bar.
*/
sideBar: {
width: 250,
height: Dimensions.get('window').height
},
2018-02-02 14:50:16 +00:00
/**
* The body of the side bar where the items are.
*/
sideBarBody: {
backgroundColor: ColorPalette.white,
flex: 1
},
2018-02-02 14:50:16 +00:00
/**
* The style of the side bar header.
*/
sideBarHeader: {
alignItems: 'center',
2018-02-02 14:50:16 +00:00
flexDirection: 'column',
height: SIDEBAR_HEADER_HEIGHT,
justifyContent: 'center',
padding: BoxModel.padding
2018-02-02 14:50:16 +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'
},
/**
2018-02-02 14:50:16 +00:00
* The icon in the side bar item touchables.
*/
2018-02-02 14:50:16 +00:00
sideBarItemIcon: {
color: ColorPalette.blueHighlight,
fontSize: 20,
marginRight: 15
},
/**
2018-02-02 14:50:16 +00:00
* The label of the side bar item touchables.
*/
2018-02-02 14:50:16 +00:00
sideBarItemText: {
color: ColorPalette.black,
fontWeight: 'bold'
},
/**
* The container of the label of the audio-video switch.
*/
switchLabel: {
paddingHorizontal: 3
},
/**
* Room input style.
*/
textInput: {
backgroundColor: 'transparent',
borderColor: ColorPalette.white,
2018-02-02 14:50:16 +00:00
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'
},
2020-05-18 12:07:09 +00:00
insecureRoomNameWarningContainer: {
alignItems: 'center',
flexDirection: 'row',
paddingHorizontal: 5
},
insecureRoomNameWarningIcon: {
color: ColorPalette.warning,
fontSize: 24,
marginRight: 10
},
insecureRoomNameWarningText: {
color: ColorPalette.warning,
flex: 1
},
/**
* The style of the top-level container of {@code WelcomePage}.
*/
welcomePage: {
2018-02-02 14:50:16 +00:00
backgroundColor: ColorPalette.blue,
overflow: 'hidden'
}
2019-08-30 16:39:06 +00:00
};