2017-04-10 09:26:06 +00:00
|
|
|
import { Platform } from '../../base/react';
|
2016-11-29 20:04:56 +00:00
|
|
|
import { BoxModel, ColorPalette } from '../../base/styles';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-06-10 22:50:42 +00:00
|
|
|
* The styles of the feature filmstrip common to both Web and native.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-06-10 22:50:42 +00:00
|
|
|
export default {
|
2017-04-07 15:26:51 +00:00
|
|
|
/**
|
|
|
|
* Avatar style.
|
|
|
|
*/
|
|
|
|
avatar: {
|
|
|
|
alignSelf: 'center',
|
2017-04-10 09:26:06 +00:00
|
|
|
|
|
|
|
// XXX Workaround for Android: for images < 80 the border radius doesn't
|
|
|
|
// work properly, but applying a radius twice as big does the trick.
|
|
|
|
borderRadius: Platform.OS === 'android' ? 100 : 25,
|
2017-04-07 15:26:51 +00:00
|
|
|
flex: 0,
|
|
|
|
height: 50,
|
|
|
|
width: 50
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* Dominant speaker indicator style.
|
|
|
|
*/
|
|
|
|
dominantSpeakerIndicator: {
|
2016-11-29 20:04:56 +00:00
|
|
|
color: ColorPalette.white,
|
2016-10-05 14:36:59 +00:00
|
|
|
fontSize: 15
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dominant speaker indicator background style.
|
|
|
|
*/
|
|
|
|
dominantSpeakerIndicatorBackground: {
|
2016-11-29 20:04:56 +00:00
|
|
|
backgroundColor: ColorPalette.blue,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderRadius: 15,
|
2016-12-21 22:32:11 +00:00
|
|
|
left: 4,
|
2016-10-05 14:36:59 +00:00
|
|
|
padding: 5,
|
2016-12-21 22:32:11 +00:00
|
|
|
position: 'absolute',
|
|
|
|
top: 4
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-10 17:59:44 +00:00
|
|
|
* The style of the Container which represents the very filmstrip.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-04-10 17:59:44 +00:00
|
|
|
filmstrip: {
|
2016-10-31 17:33:32 +00:00
|
|
|
alignItems: 'flex-end',
|
2016-10-05 14:36:59 +00:00
|
|
|
alignSelf: 'stretch',
|
2016-11-29 20:04:56 +00:00
|
|
|
bottom: BoxModel.margin,
|
2016-10-05 14:36:59 +00:00
|
|
|
flex: 1,
|
2016-10-31 17:33:32 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
left: 0,
|
2016-10-05 14:36:59 +00:00
|
|
|
position: 'absolute',
|
2016-10-31 17:33:32 +00:00
|
|
|
right: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of the content container of the ScrollView which is placed
|
2017-04-10 17:59:44 +00:00
|
|
|
* inside filmstrip and which contains the participants' thumbnails in order
|
2016-10-31 17:33:32 +00:00
|
|
|
* to allow scrolling through them if they do not fit within the display.
|
|
|
|
*/
|
2017-04-10 17:59:44 +00:00
|
|
|
filmstripScrollViewContentContainer: {
|
2016-11-29 20:04:56 +00:00
|
|
|
paddingHorizontal: BoxModel.padding
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Moderator indicator style.
|
|
|
|
*/
|
|
|
|
moderatorIndicator: {
|
|
|
|
backgroundColor: 'transparent',
|
2016-12-21 22:32:11 +00:00
|
|
|
bottom: 4,
|
2016-11-29 20:04:56 +00:00
|
|
|
color: ColorPalette.white,
|
2016-10-05 14:36:59 +00:00
|
|
|
position: 'absolute',
|
2016-12-21 22:32:11 +00:00
|
|
|
right: 4
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-11 00:14:14 +00:00
|
|
|
* The style of a participant's Thumbnail which renders either the video or
|
|
|
|
* the avatar of the associated participant.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
|
|
|
thumbnail: {
|
|
|
|
alignItems: 'stretch',
|
2016-11-29 20:04:56 +00:00
|
|
|
backgroundColor: ColorPalette.appBackground,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderColor: '#424242',
|
2016-12-21 22:32:11 +00:00
|
|
|
borderRadius: 3,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderStyle: 'solid',
|
|
|
|
borderWidth: 1,
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
2016-12-21 22:32:11 +00:00
|
|
|
marginLeft: 2,
|
|
|
|
marginRight: 2,
|
2016-10-05 14:36:59 +00:00
|
|
|
overflow: 'hidden',
|
|
|
|
position: 'relative'
|
|
|
|
},
|
|
|
|
|
2016-12-21 22:32:11 +00:00
|
|
|
/**
|
|
|
|
* The thumbnail audio and video muted indicator style.
|
|
|
|
*/
|
|
|
|
thumbnailIndicator: {
|
|
|
|
backgroundColor: 'transparent',
|
|
|
|
color: ColorPalette.white,
|
|
|
|
paddingLeft: 1,
|
|
|
|
paddingRight: 1,
|
|
|
|
position: 'relative'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The thumbnails indicator container.
|
|
|
|
*/
|
|
|
|
thumbnailIndicatorContainer: {
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
bottom: 4,
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
left: 4,
|
|
|
|
position: 'absolute'
|
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* Pinned video thumbnail style.
|
|
|
|
*/
|
|
|
|
thumbnailPinned: {
|
2016-11-29 20:04:56 +00:00
|
|
|
borderColor: ColorPalette.blue,
|
|
|
|
shadowColor: ColorPalette.black,
|
2016-10-05 14:36:59 +00:00
|
|
|
shadowOffset: {
|
|
|
|
height: 5,
|
|
|
|
width: 5
|
|
|
|
},
|
|
|
|
shadowRadius: 5
|
|
|
|
}
|
|
|
|
};
|