2017-02-16 21:17:05 +00:00
|
|
|
import {
|
2017-11-07 22:59:34 +00:00
|
|
|
BoxModel,
|
2017-02-16 21:17:05 +00:00
|
|
|
ColorPalette,
|
|
|
|
createStyleSheet,
|
|
|
|
fixAndroidViewClipping
|
2019-01-30 13:05:35 +00:00
|
|
|
} from '../../../base/styles';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2019-02-05 10:10:15 +00:00
|
|
|
import { FILMSTRIP_SIZE } from '../../../filmstrip';
|
|
|
|
|
2019-01-30 15:43:57 +00:00
|
|
|
export const NAVBAR_GRADIENT_COLORS = [ 'black', '#00000000' ];
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-06-10 22:50:42 +00:00
|
|
|
* The styles of the feature conference.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-06-10 22:50:42 +00:00
|
|
|
export default createStyleSheet({
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-06-10 22:50:42 +00:00
|
|
|
* {@code Conference} style.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-02-16 21:17:05 +00:00
|
|
|
conference: fixAndroidViewClipping({
|
2016-10-05 14:36:59 +00:00
|
|
|
alignSelf: 'stretch',
|
2016-11-08 22:09:07 +00:00
|
|
|
backgroundColor: ColorPalette.appBackground,
|
2016-10-05 14:36:59 +00:00
|
|
|
flex: 1
|
2017-09-14 10:18:47 +00:00
|
|
|
}),
|
|
|
|
|
2019-01-28 14:55:37 +00:00
|
|
|
displayNameBackdrop: {
|
|
|
|
alignSelf: 'center',
|
|
|
|
backgroundColor: 'rgba(28, 32, 37, 0.6)',
|
|
|
|
borderRadius: 4,
|
|
|
|
margin: 16,
|
|
|
|
paddingHorizontal: 16,
|
|
|
|
paddingVertical: 4
|
|
|
|
},
|
|
|
|
|
|
|
|
displayNameText: {
|
|
|
|
color: ColorPalette.white,
|
|
|
|
fontSize: 14
|
|
|
|
},
|
|
|
|
|
2019-01-30 15:43:57 +00:00
|
|
|
gradient: {
|
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
|
|
|
|
gradientStretch: {
|
|
|
|
height: 116
|
|
|
|
},
|
|
|
|
|
2019-02-05 10:10:15 +00:00
|
|
|
/**
|
|
|
|
* View that contains the indicators.
|
|
|
|
*/
|
|
|
|
indicatorContainer: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
margin: BoxModel.margin
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicator container for wide aspect ratio.
|
|
|
|
*/
|
|
|
|
indicatorContainerWide: {
|
|
|
|
marginRight: FILMSTRIP_SIZE + BoxModel.margin
|
|
|
|
},
|
|
|
|
|
|
|
|
labelWrapper: {
|
|
|
|
flexDirection: 'column',
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
2019-01-30 15:43:57 +00:00
|
|
|
navBarButton: {
|
|
|
|
iconStyle: {
|
|
|
|
color: ColorPalette.white,
|
|
|
|
fontSize: 24
|
|
|
|
},
|
|
|
|
|
|
|
|
underlayColor: 'transparent'
|
|
|
|
},
|
|
|
|
|
|
|
|
navBarContainer: {
|
|
|
|
flexDirection: 'column',
|
|
|
|
left: 0,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
navBarSafeView: {
|
|
|
|
left: 0,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
navBarWrapper: {
|
|
|
|
alignItems: 'center',
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
height: 44,
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
paddingHorizontal: 14
|
|
|
|
},
|
|
|
|
|
|
|
|
roomName: {
|
|
|
|
color: ColorPalette.white,
|
|
|
|
fontSize: 17,
|
|
|
|
fontWeight: '400'
|
|
|
|
},
|
|
|
|
|
|
|
|
roomNameWrapper: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
left: 0,
|
|
|
|
paddingHorizontal: 48,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0
|
|
|
|
},
|
|
|
|
|
2017-10-13 16:13:46 +00:00
|
|
|
/**
|
2017-11-07 22:59:34 +00:00
|
|
|
* The style of the {@link View} which expands over the whole
|
|
|
|
* {@link Conference} area and splits it between the {@link Filmstrip} and
|
|
|
|
* the {@link Toolbox}.
|
2017-10-13 16:13:46 +00:00
|
|
|
*/
|
|
|
|
toolboxAndFilmstripContainer: {
|
2017-11-07 22:59:34 +00:00
|
|
|
bottom: BoxModel.margin,
|
2017-10-13 16:13:46 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'flex-end',
|
2018-05-18 11:50:34 +00:00
|
|
|
left: 0,
|
2017-10-13 16:13:46 +00:00
|
|
|
position: 'absolute',
|
2018-05-18 11:50:34 +00:00
|
|
|
right: 0,
|
2017-11-07 22:59:34 +00:00
|
|
|
|
|
|
|
// Both on Android and iOS there is the status bar which may be visible.
|
|
|
|
// On iPhone X there is the notch. In the two cases BoxModel.margin is
|
|
|
|
// not enough.
|
|
|
|
top: BoxModel.margin * 3
|
2017-09-14 10:18:47 +00:00
|
|
|
}
|
2016-10-05 14:36:59 +00:00
|
|
|
});
|