2021-12-20 08:44:22 +00:00
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
2021-03-18 11:44:52 +00:00
|
|
|
import { SMALL_THUMBNAIL_SIZE } from '../../constants';
|
2019-03-27 10:23:41 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Size for the Avatar.
|
|
|
|
*/
|
|
|
|
export const AVATAR_SIZE = 50;
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2022-02-14 10:13:18 +00:00
|
|
|
const indicatorContainer = {
|
|
|
|
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
2022-11-18 10:05:06 +00:00
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
2022-02-14 10:13:18 +00:00
|
|
|
margin: 2,
|
|
|
|
padding: 2
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2021-08-20 23:32:38 +00:00
|
|
|
/**
|
2021-11-04 21:10:43 +00:00
|
|
|
* The FlatList content container styles.
|
2021-08-20 23:32:38 +00:00
|
|
|
*/
|
|
|
|
contentContainer: {
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
flex: 0
|
|
|
|
},
|
|
|
|
|
2020-07-16 15:41:43 +00:00
|
|
|
/**
|
|
|
|
* The display name container.
|
|
|
|
*/
|
|
|
|
displayNameContainer: {
|
2022-02-14 10:13:18 +00:00
|
|
|
padding: 2
|
2020-07-16 15:41:43 +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',
|
2022-03-01 15:41:45 +00:00
|
|
|
margin: 6
|
2019-03-27 10:23:41 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
},
|
|
|
|
|
2021-08-20 23:32:38 +00:00
|
|
|
/**
|
|
|
|
* The styles for the FlatList container.
|
|
|
|
*/
|
|
|
|
flatListContainer: {
|
|
|
|
flexGrow: 1,
|
|
|
|
flexShrink: 1,
|
|
|
|
flex: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2021-08-26 23:23:38 +00:00
|
|
|
* The styles for the FlatList component in stage view.
|
2021-08-20 23:32:38 +00:00
|
|
|
*/
|
2021-08-26 23:23:38 +00:00
|
|
|
flatListStageView: {
|
|
|
|
flexGrow: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The styles for the FlatList component in tile view.
|
|
|
|
*/
|
|
|
|
flatListTileView: {
|
2021-08-20 23:32:38 +00:00
|
|
|
flex: 0
|
|
|
|
},
|
|
|
|
|
2019-03-27 10:23:41 +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
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
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',
|
2022-02-14 10:13:18 +00:00
|
|
|
backgroundColor: BaseTheme.palette.ui02,
|
2019-03-27 10:23:41 +00:00
|
|
|
borderColor: '#424242',
|
2022-02-14 10:13:18 +00:00
|
|
|
borderRadius: 4,
|
2019-03-27 10:23:41 +00:00
|
|
|
borderStyle: 'solid',
|
|
|
|
borderWidth: 1,
|
|
|
|
flex: 1,
|
2021-03-18 11:44:52 +00:00
|
|
|
height: SMALL_THUMBNAIL_SIZE,
|
2019-03-27 10:23:41 +00:00
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 2,
|
2021-03-18 11:44:52 +00:00
|
|
|
maxHeight: SMALL_THUMBNAIL_SIZE,
|
|
|
|
maxWidth: SMALL_THUMBNAIL_SIZE,
|
2019-03-27 10:23:41 +00:00
|
|
|
overflow: 'hidden',
|
|
|
|
position: 'relative',
|
2021-03-18 11:44:52 +00:00
|
|
|
width: SMALL_THUMBNAIL_SIZE
|
2018-05-10 23:01:55 +00:00
|
|
|
},
|
|
|
|
|
2022-11-18 10:05:06 +00:00
|
|
|
indicatorContainer: {
|
|
|
|
...indicatorContainer,
|
|
|
|
flexShrink: 1,
|
|
|
|
height: 32,
|
|
|
|
justifyContent: 'center',
|
|
|
|
marginBottom: BaseTheme.spacing[0],
|
|
|
|
marginHorizontal: BaseTheme.spacing[1],
|
|
|
|
marginTop: 6,
|
|
|
|
width: 32
|
|
|
|
},
|
2022-02-14 10:13:18 +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: {
|
2022-02-14 10:13:18 +00:00
|
|
|
alignSelf: 'center',
|
2019-03-27 10:23:41 +00:00
|
|
|
bottom: 4,
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
left: 4,
|
2022-02-14 10:13:18 +00:00
|
|
|
position: 'absolute',
|
|
|
|
maxWidth: '95%',
|
|
|
|
overflow: 'hidden',
|
2022-02-24 12:17:02 +00:00
|
|
|
...indicatorContainer,
|
|
|
|
padding: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
bottomIndicatorsContainer: {
|
|
|
|
padding: 2,
|
|
|
|
flexDirection: 'row'
|
2019-03-27 10:23:41 +00:00
|
|
|
},
|
|
|
|
|
2019-03-29 13:26:49 +00:00
|
|
|
thumbnailTopIndicatorContainer: {
|
|
|
|
padding: 4,
|
|
|
|
position: 'absolute',
|
2022-02-14 10:13:18 +00:00
|
|
|
top: 0,
|
|
|
|
flexDirection: 'row'
|
2019-03-29 13:26:49 +00:00
|
|
|
},
|
|
|
|
|
2019-04-15 16:23:28 +00:00
|
|
|
thumbnailTopLeftIndicatorContainer: {
|
|
|
|
left: 0
|
|
|
|
},
|
|
|
|
|
2022-02-14 10:13:18 +00:00
|
|
|
raisedHandIndicator: {
|
|
|
|
...indicatorContainer,
|
|
|
|
backgroundColor: BaseTheme.palette.warning02
|
|
|
|
},
|
|
|
|
|
|
|
|
raisedHandIcon: {
|
|
|
|
color: BaseTheme.palette.uiBackground
|
2021-12-20 08:44:22 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
thumbnailRaisedHand: {
|
|
|
|
borderWidth: 2,
|
|
|
|
borderColor: BaseTheme.palette.warning02
|
2022-02-14 10:13:18 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
thumbnailDominantSpeaker: {
|
|
|
|
borderWidth: 4,
|
|
|
|
borderColor: BaseTheme.palette.action01Hover
|
2022-03-30 13:54:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
thumbnailGif: {
|
|
|
|
flexGrow: 1,
|
|
|
|
resizeMode: 'contain'
|
2019-03-27 10:23:41 +00:00
|
|
|
}
|
|
|
|
};
|