2019-03-27 10:23:41 +00:00
|
|
|
// @flow
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2019-03-27 10:23:41 +00:00
|
|
|
import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
|
|
|
|
import { ColorPalette } from '../../../base/styles';
|
|
|
|
import { FILMSTRIP_SIZE } from '../../constants';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Size for the Avatar.
|
|
|
|
*/
|
|
|
|
export const AVATAR_SIZE = 50;
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-06-10 22:50:42 +00:00
|
|
|
* The styles of the feature filmstrip.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2019-03-27 10:23:41 +00:00
|
|
|
export default {
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2019-03-27 10:23:41 +00:00
|
|
|
/**
|
|
|
|
* The style of the narrow {@link Filmstrip} version which displays
|
|
|
|
* thumbnails in a row at the bottom of the screen.
|
|
|
|
*/
|
|
|
|
filmstripNarrow: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
flexGrow: 0,
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
height: FILMSTRIP_SIZE
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of the wide {@link Filmstrip} version which displays thumbnails
|
|
|
|
* in a column on the short size of the screen.
|
|
|
|
*
|
|
|
|
* NOTE: width is calculated based on the children, but it should also align
|
|
|
|
* to {@code FILMSTRIP_SIZE}.
|
|
|
|
*/
|
|
|
|
filmstripWide: {
|
|
|
|
bottom: 0,
|
|
|
|
flexDirection: 'column',
|
|
|
|
flexGrow: 0,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Container of the {@link LocalThumbnail}.
|
|
|
|
*/
|
|
|
|
localThumbnail: {
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
aspectRatio: 1,
|
|
|
|
flexShrink: 0,
|
|
|
|
flexDirection: 'row'
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
2019-03-29 13:26:49 +00:00
|
|
|
moderatorIndicatorContainer: {
|
2019-03-27 10:23:41 +00:00
|
|
|
bottom: 4,
|
|
|
|
position: 'absolute',
|
2019-03-29 13:26:49 +00:00
|
|
|
right: 4
|
2019-03-27 10:23:41 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of the scrollview containing the remote thumbnails.
|
|
|
|
*/
|
|
|
|
scrollView: {
|
|
|
|
flexGrow: 0
|
|
|
|
},
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2019-03-27 10:23:41 +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: {
|
2019-03-27 10:23:41 +00:00
|
|
|
alignItems: 'stretch',
|
|
|
|
backgroundColor: ColorPalette.appBackground,
|
|
|
|
borderColor: '#424242',
|
|
|
|
borderRadius: 3,
|
|
|
|
borderStyle: 'solid',
|
|
|
|
borderWidth: 1,
|
|
|
|
flex: 1,
|
2016-10-05 14:36:59 +00:00
|
|
|
height: 80,
|
2019-03-27 10:23:41 +00:00
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 2,
|
|
|
|
overflow: 'hidden',
|
|
|
|
position: 'relative',
|
2016-10-05 14:36:59 +00:00
|
|
|
width: 80
|
2018-05-10 23:01:55 +00:00
|
|
|
},
|
|
|
|
|
2019-03-27 10:23:41 +00:00
|
|
|
/**
|
|
|
|
* The thumbnails indicator container.
|
2018-05-10 23:01:55 +00:00
|
|
|
*/
|
2019-03-27 10:23:41 +00:00
|
|
|
thumbnailIndicatorContainer: {
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
bottom: 4,
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
left: 4,
|
|
|
|
position: 'absolute'
|
|
|
|
},
|
|
|
|
|
2019-03-29 13:26:49 +00:00
|
|
|
thumbnailTopIndicatorContainer: {
|
|
|
|
padding: 4,
|
|
|
|
position: 'absolute',
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
2019-04-15 16:23:28 +00:00
|
|
|
thumbnailTopLeftIndicatorContainer: {
|
|
|
|
left: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
thumbnailTopRightIndicatorContainer: {
|
|
|
|
right: 0
|
|
|
|
},
|
|
|
|
|
2019-03-27 10:23:41 +00:00
|
|
|
tileView: {
|
|
|
|
alignSelf: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
tileViewRows: {
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
tileViewRow: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color schemed styles for the @{code Thumbnail} component.
|
|
|
|
*/
|
|
|
|
ColorSchemeRegistry.register('Thumbnail', {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tinting style of the on-stage participant thumbnail.
|
|
|
|
*/
|
|
|
|
activeThumbnailTint: {
|
|
|
|
backgroundColor: schemeColor('activeParticipantTint')
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Coloring if the thumbnail background.
|
|
|
|
*/
|
|
|
|
participantViewStyle: {
|
|
|
|
backgroundColor: schemeColor('background')
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Pinned video thumbnail style.
|
|
|
|
*/
|
|
|
|
thumbnailPinned: {
|
|
|
|
borderColor: schemeColor('activeParticipantHighlight'),
|
|
|
|
shadowColor: schemeColor('activeParticipantHighlight'),
|
|
|
|
shadowOffset: {
|
|
|
|
height: 5,
|
|
|
|
width: 5
|
|
|
|
},
|
|
|
|
shadowRadius: 5
|
|
|
|
}
|
2016-10-05 14:36:59 +00:00
|
|
|
});
|