jiti-meet/react/features/conference/components/native/styles.js

182 lines
3.9 KiB
JavaScript
Raw Normal View History

2019-07-12 08:06:49 +00:00
import { BoxModel, ColorPalette, fixAndroidViewClipping } from '../../../base/styles';
2020-03-20 17:30:46 +00:00
import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
2019-02-05 10:10:15 +00:00
import { FILMSTRIP_SIZE } from '../../../filmstrip';
2019-07-12 13:03:14 +00:00
export const NAVBAR_GRADIENT_COLORS = [ '#000000FF', '#00000000' ];
2019-07-12 08:06:49 +00:00
// From brand guideline
2019-07-12 13:03:14 +00:00
const BOTTOM_GRADIENT_HEIGHT = 290;
const DEFAULT_GRADIENT_SIZE = 140;
2019-01-30 15:43:57 +00:00
/**
* The styles of the feature conference.
*/
2019-07-12 08:06:49 +00:00
export default {
bottomGradient: {
bottom: 0,
flexDirection: 'column',
justifyContent: 'flex-end',
2019-07-12 13:03:14 +00:00
minHeight: DEFAULT_GRADIENT_SIZE,
2019-07-12 08:06:49 +00:00
left: 0,
position: 'absolute',
right: 0
},
/**
* {@code Conference} style.
*/
2017-02-16 21:17:05 +00:00
conference: fixAndroidViewClipping({
alignSelf: 'stretch',
2016-11-08 22:09:07 +00:00
backgroundColor: ColorPalette.appBackground,
flex: 1
}),
2019-01-30 15:43:57 +00:00
gradient: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
2019-01-30 15:43:57 +00:00
flex: 1
},
2019-07-12 08:06:49 +00:00
gradientStretchBottom: {
2019-07-12 13:03:14 +00:00
height: BOTTOM_GRADIENT_HEIGHT
2019-07-12 08:06:49 +00:00
},
2019-07-12 13:03:14 +00:00
gradientStretchTop: {
height: DEFAULT_GRADIENT_SIZE
2019-01-30 15:43:57 +00:00
},
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
},
2020-03-20 17:30:46 +00:00
lonelyButton: {
alignItems: 'center',
borderRadius: 24,
flexDirection: 'row',
height: 48,
justifyContent: 'space-around',
paddingHorizontal: 12
},
lonelyButtonComponents: {
marginHorizontal: 6
},
lonelyMeetingContainer: {
alignSelf: 'stretch',
alignItems: 'center',
padding: BoxModel.padding * 2
},
lonelyMessage: {
paddingVertical: 12
},
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
},
2020-01-13 17:12:25 +00:00
roomTimer: {
color: ColorPalette.white,
fontSize: 15,
opacity: 0.6
},
2019-01-30 15:43:57 +00:00
roomName: {
color: ColorPalette.white,
fontSize: 17,
fontWeight: '400'
},
roomNameWrapper: {
2020-01-13 17:12:25 +00:00
flexDirection: 'column',
alignItems: 'center',
2019-01-30 15:43:57 +00:00
left: 0,
paddingHorizontal: 48,
position: 'absolute',
right: 0
},
/**
* 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}.
*/
toolboxAndFilmstripContainer: {
2019-07-12 08:06:49 +00:00
bottom: 0,
flexDirection: 'column',
justifyContent: 'flex-end',
left: 0,
2019-07-12 08:06:49 +00:00
paddingBottom: BoxModel.padding,
position: 'absolute',
right: 0,
// 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
}
2019-07-12 08:06:49 +00:00
};
2020-03-20 17:30:46 +00:00
ColorSchemeRegistry.register('Conference', {
lonelyButton: {
backgroundColor: schemeColor('inviteButtonBackground')
},
lonelyMessage: {
color: schemeColor('onVideoText')
}
});