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

234 lines
4.9 KiB
JavaScript
Raw Normal View History

// @flow
import { StyleSheet } from 'react-native';
import { BoxModel } from '../../base/styles';
import BaseTheme from '../../base/ui/components/BaseTheme.native';
2018-02-02 14:50:16 +00:00
export const AVATAR_SIZE = 104;
2017-12-20 00:49:36 +00:00
/**
* The default color of text on the WelcomePage.
*/
const TEXT_COLOR = BaseTheme.palette.text01;
/**
* 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
blankPageText: {
color: TEXT_COLOR,
fontSize: 18
},
/**
* View that is rendered when there is no welcome page.
*/
blankPageWrapper: {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
backgroundColor: BaseTheme.palette.uiBackground,
flex: 1,
flexDirection: 'column',
justifyContent: 'center'
},
/**
* Join button style.
*/
button: {
2022-11-09 10:59:17 +00:00
backgroundColor: BaseTheme.palette.action01,
borderColor: BaseTheme.palette.action01,
borderRadius: BaseTheme.shape.borderRadius,
borderWidth: 1,
2022-11-09 10:59:17 +00:00
height: BaseTheme.spacing[7],
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: {
alignSelf: 'center',
color: BaseTheme.palette.text01,
2018-02-16 16:06:03 +00:00
fontSize: 14
},
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',
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: {
2022-11-09 10:59:17 +00:00
color: BaseTheme.palette.text01,
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: {
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
},
roomNameInputContainer: {
height: '0%'
},
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: BaseTheme.palette.screen01Header,
flex: 1,
justifyContent: 'center'
},
reducedUIText: {
color: TEXT_COLOR,
fontSize: 12
},
/**
* Container for room name input box and 'join' button.
*/
roomContainer: {
alignSelf: 'stretch',
2022-02-08 15:09:22 +00:00
flexDirection: 'column',
marginHorizontal: BaseTheme.spacing[2]
2018-02-02 14:50:16 +00:00
},
/**
* The container of the label of the audio-video switch.
*/
switchLabel: {
paddingHorizontal: 3
},
/**
* Room input style.
*/
textInput: {
backgroundColor: 'transparent',
borderColor: BaseTheme.palette.field02,
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',
2022-11-09 10:59:17 +00:00
paddingHorizontal: BaseTheme.spacing[1]
2020-05-18 12:07:09 +00:00
},
insecureRoomNameWarningIcon: {
color: BaseTheme.palette.warning03,
2020-05-18 12:07:09 +00:00
fontSize: 24,
marginRight: 10
},
insecureRoomNameWarningText: {
color: BaseTheme.palette.warning03,
2020-05-18 12:07:09 +00:00
flex: 1
},
/**
* The style of the top-level container of {@code WelcomePage}.
*/
welcomePage: {
backgroundColor: BaseTheme.palette.uiBackground,
flex: 1,
overflow: 'hidden'
},
customInput: {
2022-11-11 15:51:16 +00:00
fontSize: 18,
2022-11-09 10:59:17 +00:00
letterSpacing: 0,
textAlign: 'center'
},
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'
}
2019-08-30 16:39:06 +00:00
};