2017-11-07 22:59:34 +00:00
|
|
|
import { ColorPalette } from '../../base/styles';
|
2018-06-14 09:14:32 +00:00
|
|
|
import { FILMSTRIP_SIZE } from '../constants';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2018-02-05 10:57:40 +00:00
|
|
|
/**
|
|
|
|
* Size for the Avatar.
|
|
|
|
*/
|
|
|
|
export const AVATAR_SIZE = 50;
|
|
|
|
|
2017-10-13 16:13:46 +00:00
|
|
|
/**
|
2017-11-07 14:28:08 +00:00
|
|
|
* The base style of {@link Filmstrip} shared between narrow and wide versions.
|
2017-10-13 16:13:46 +00:00
|
|
|
*/
|
2017-11-07 14:28:08 +00:00
|
|
|
const filmstrip = {
|
|
|
|
flexGrow: 0
|
2017-10-13 16:13:46 +00:00
|
|
|
};
|
|
|
|
|
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 {
|
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-11-07 14:28:08 +00:00
|
|
|
* The style of the narrow {@link Filmstrip} version which displays
|
|
|
|
* thumbnails in a row at the bottom of the screen.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-10-13 16:13:46 +00:00
|
|
|
filmstripNarrow: {
|
2017-11-07 14:28:08 +00:00
|
|
|
...filmstrip,
|
2018-04-26 12:44:23 +00:00
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'flex-end',
|
2018-06-14 09:14:32 +00:00
|
|
|
height: FILMSTRIP_SIZE
|
2016-10-31 17:33:32 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-11-07 14:28:08 +00:00
|
|
|
* The style of the wide {@link Filmstrip} version which displays thumbnails
|
|
|
|
* in a column on the short size of the screen.
|
2018-06-14 09:14:32 +00:00
|
|
|
*
|
|
|
|
* NOTE: width is calculated based on the children, but it should also align
|
|
|
|
* to {@code FILMSTRIP_SIZE}.
|
2016-10-31 17:33:32 +00:00
|
|
|
*/
|
2017-10-13 16:13:46 +00:00
|
|
|
filmstripWide: {
|
2017-11-07 14:28:08 +00:00
|
|
|
...filmstrip,
|
2017-11-07 22:59:34 +00:00
|
|
|
bottom: 0,
|
2018-04-26 12:44:23 +00:00
|
|
|
flexDirection: 'column',
|
2017-10-13 16:13:46 +00:00
|
|
|
position: 'absolute',
|
2018-05-15 11:18:42 +00:00
|
|
|
right: 0,
|
2017-11-07 22:59:34 +00:00
|
|
|
top: 0
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
2018-04-26 12:44:23 +00:00
|
|
|
/**
|
|
|
|
* Container of the {@link LocalThumbnail}.
|
|
|
|
*/
|
|
|
|
localThumbnail: {
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
aspectRatio: 1,
|
|
|
|
flexShrink: 0,
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
|
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
|
|
|
},
|
|
|
|
|
2018-04-26 12:44:23 +00:00
|
|
|
/**
|
|
|
|
* The style of the scrollview containing the remote thumbnails.
|
|
|
|
*/
|
|
|
|
scrollView: {
|
|
|
|
flexGrow: 0
|
|
|
|
},
|
|
|
|
|
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',
|
2017-10-13 16:13:46 +00:00
|
|
|
margin: 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
|
2018-09-13 15:20:22 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
tileView: {
|
|
|
|
alignSelf: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
tileViewRows: {
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
tileViewRow: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center'
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
|
|
|
};
|