2021-05-14 16:03:23 +00:00
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
|
|
|
|
2021-05-26 08:29:21 +00:00
|
|
|
/**
|
|
|
|
* The style for participant list description.
|
|
|
|
*/
|
|
|
|
const participantListDescription = {
|
2021-06-09 12:41:00 +00:00
|
|
|
...BaseTheme.typography.heading6,
|
|
|
|
color: BaseTheme.palette.text02,
|
2021-05-26 10:03:12 +00:00
|
|
|
paddingBottom: BaseTheme.spacing[3],
|
|
|
|
paddingTop: BaseTheme.spacing[3],
|
2021-05-26 08:29:21 +00:00
|
|
|
position: 'relative',
|
|
|
|
width: '55%'
|
|
|
|
};
|
|
|
|
|
2021-05-21 15:35:36 +00:00
|
|
|
/**
|
|
|
|
* The style for content.
|
|
|
|
*/
|
|
|
|
const flexContent = {
|
|
|
|
alignItems: 'center',
|
|
|
|
color: BaseTheme.palette.icon01,
|
|
|
|
display: 'flex',
|
|
|
|
flex: 1
|
|
|
|
};
|
|
|
|
|
2021-07-02 13:43:52 +00:00
|
|
|
/**
|
|
|
|
* The style for the context menu items text.
|
|
|
|
*/
|
|
|
|
const contextMenuItemText = {
|
|
|
|
...BaseTheme.typography.bodyShortRegularLarge,
|
|
|
|
color: BaseTheme.palette.text01
|
|
|
|
};
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
/**
|
|
|
|
* The style of the participants pane buttons.
|
|
|
|
*/
|
2021-06-29 14:05:11 +00:00
|
|
|
export const button = {
|
2021-05-19 10:08:30 +00:00
|
|
|
backgroundColor: BaseTheme.palette.action02,
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
|
|
display: 'flex',
|
2021-07-06 19:07:52 +00:00
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
2021-07-02 13:43:52 +00:00
|
|
|
minWidth: 0
|
2021-05-19 10:08:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Small buttons.
|
|
|
|
*/
|
|
|
|
const smallButton = {
|
2021-07-02 13:43:52 +00:00
|
|
|
...button,
|
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
width: BaseTheme.spacing[7]
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mute all button.
|
|
|
|
*/
|
|
|
|
const muteAllButton = {
|
|
|
|
...button,
|
|
|
|
marginLeft: 'auto'
|
2021-05-19 10:08:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of the participants pane buttons description.
|
|
|
|
*/
|
|
|
|
const buttonContent = {
|
2021-05-21 15:35:36 +00:00
|
|
|
...BaseTheme.typography.labelButton,
|
2021-07-06 19:07:52 +00:00
|
|
|
alignContent: 'center',
|
2021-05-20 16:06:52 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2021-07-06 19:07:52 +00:00
|
|
|
display: 'flex',
|
2021-05-19 10:08:30 +00:00
|
|
|
justifyContent: 'center'
|
|
|
|
};
|
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
/**
|
|
|
|
* The style of the context menu pane items.
|
|
|
|
*/
|
|
|
|
const contextMenuItem = {
|
2021-07-06 19:07:52 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
display: 'flex',
|
2021-06-03 16:23:18 +00:00
|
|
|
flexDirection: 'row',
|
2021-07-06 19:07:52 +00:00
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
marginLeft: BaseTheme.spacing[3],
|
|
|
|
marginTop: BaseTheme.spacing[2]
|
2021-06-03 16:23:18 +00:00
|
|
|
};
|
|
|
|
|
2021-05-14 16:03:23 +00:00
|
|
|
/**
|
|
|
|
* The styles of the native components of the feature {@code participants}.
|
|
|
|
*/
|
|
|
|
export default {
|
2021-05-19 10:08:30 +00:00
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
participantActionsButtonAdmit: {
|
|
|
|
backgroundColor: BaseTheme.palette.action01,
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
2021-05-26 07:15:37 +00:00
|
|
|
flexDirection: 'row',
|
2021-06-09 12:41:00 +00:00
|
|
|
height: BaseTheme.spacing[6],
|
|
|
|
marginRight: BaseTheme.spacing[3],
|
2021-05-24 18:23:41 +00:00
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
zIndex: 1
|
2021-05-21 15:35:36 +00:00
|
|
|
},
|
|
|
|
|
2021-05-26 07:15:37 +00:00
|
|
|
participantActionsButtonContent: {
|
|
|
|
alignItems: 'center',
|
|
|
|
display: 'flex',
|
2021-06-09 12:41:00 +00:00
|
|
|
height: BaseTheme.spacing[5],
|
|
|
|
top: BaseTheme.spacing[1]
|
2021-05-26 07:15:37 +00:00
|
|
|
},
|
|
|
|
|
2021-05-24 18:23:41 +00:00
|
|
|
participantActionsButtonText: {
|
2021-05-26 07:15:37 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
|
|
|
textTransform: 'capitalize'
|
2021-05-24 11:08:58 +00:00
|
|
|
},
|
|
|
|
|
2021-06-09 12:41:00 +00:00
|
|
|
admitAllParticipantsActionButtonLabel: {
|
2021-06-03 16:23:18 +00:00
|
|
|
...BaseTheme.typography.heading6,
|
|
|
|
color: BaseTheme.palette.link01,
|
2021-05-24 18:23:41 +00:00
|
|
|
textTransform: 'capitalize'
|
2021-05-14 16:03:23 +00:00
|
|
|
},
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
participantContainer: {
|
2021-05-14 16:03:23 +00:00
|
|
|
alignItems: 'center',
|
2021-05-24 18:23:41 +00:00
|
|
|
borderBottomColor: BaseTheme.palette.field01Hover,
|
|
|
|
borderBottomWidth: 2,
|
2021-05-14 16:03:23 +00:00
|
|
|
display: 'flex',
|
2021-05-20 16:06:52 +00:00
|
|
|
flexDirection: 'row',
|
2021-05-26 10:03:12 +00:00
|
|
|
height: BaseTheme.spacing[9],
|
2021-06-09 12:41:00 +00:00
|
|
|
paddingLeft: BaseTheme.spacing[3],
|
|
|
|
paddingRight: BaseTheme.spacing[3],
|
2021-05-24 18:23:41 +00:00
|
|
|
width: '100%'
|
2021-05-14 16:03:23 +00:00
|
|
|
},
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
participantContent: {
|
2021-05-21 15:35:36 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'row',
|
2021-05-26 07:15:37 +00:00
|
|
|
height: '100%',
|
2021-05-19 10:08:30 +00:00
|
|
|
overflow: 'hidden',
|
2021-05-20 16:06:52 +00:00
|
|
|
width: '100%'
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
participantNameContainer: {
|
2021-05-14 16:03:23 +00:00
|
|
|
display: 'flex',
|
2021-05-20 16:06:52 +00:00
|
|
|
flexDirection: 'row',
|
2021-05-21 15:35:36 +00:00
|
|
|
overflow: 'hidden',
|
2021-07-30 09:46:49 +00:00
|
|
|
paddingLeft: BaseTheme.spacing[3],
|
2021-05-26 07:15:37 +00:00
|
|
|
width: '63%'
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
participantName: {
|
|
|
|
overflow: 'hidden',
|
2021-05-20 16:06:52 +00:00
|
|
|
color: BaseTheme.palette.text01
|
|
|
|
},
|
|
|
|
|
|
|
|
isLocal: {
|
2021-06-03 16:23:18 +00:00
|
|
|
alignSelf: 'center',
|
|
|
|
color: BaseTheme.palette.text01,
|
|
|
|
marginLeft: 4
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
participantsPane: {
|
|
|
|
backgroundColor: BaseTheme.palette.ui01
|
|
|
|
},
|
|
|
|
|
2021-05-21 15:35:36 +00:00
|
|
|
participantStatesContainer: {
|
|
|
|
display: 'flex',
|
2021-05-26 07:15:37 +00:00
|
|
|
flexDirection: 'row',
|
2021-06-03 16:23:18 +00:00
|
|
|
marginLeft: 'auto',
|
2021-06-09 12:41:00 +00:00
|
|
|
width: '15%'
|
2021-05-21 15:35:36 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
participantStateVideo: {
|
2021-06-09 12:41:00 +00:00
|
|
|
paddingRight: BaseTheme.spacing[3]
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
raisedHandIndicator: {
|
|
|
|
backgroundColor: BaseTheme.palette.warning02,
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius / 2,
|
2021-05-26 10:03:12 +00:00
|
|
|
height: BaseTheme.spacing[4],
|
2021-07-06 19:07:52 +00:00
|
|
|
marginLeft: BaseTheme.spacing[2],
|
2021-05-26 10:03:12 +00:00
|
|
|
width: BaseTheme.spacing[4]
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
2021-05-21 15:35:36 +00:00
|
|
|
raisedHandIcon: {
|
|
|
|
...flexContent,
|
2021-05-26 10:03:12 +00:00
|
|
|
top: BaseTheme.spacing[1]
|
2021-05-21 15:35:36 +00:00
|
|
|
},
|
2021-07-30 09:46:49 +00:00
|
|
|
|
2021-05-24 18:23:41 +00:00
|
|
|
lobbyList: {
|
2021-06-09 12:41:00 +00:00
|
|
|
position: 'relative'
|
2021-05-26 08:29:21 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
meetingList: {
|
2021-06-09 12:41:00 +00:00
|
|
|
position: 'relative',
|
2021-05-26 10:03:12 +00:00
|
|
|
marginTop: BaseTheme.spacing[3]
|
2021-05-24 18:23:41 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
lobbyListDetails: {
|
|
|
|
alignItems: 'center',
|
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'row',
|
2021-06-03 16:23:18 +00:00
|
|
|
justifyContent: 'space-between',
|
2021-05-26 07:15:37 +00:00
|
|
|
overflow: 'hidden',
|
2021-06-09 12:41:00 +00:00
|
|
|
paddingLeft: BaseTheme.spacing[3],
|
2021-05-26 07:15:37 +00:00
|
|
|
position: 'relative',
|
2021-05-24 18:23:41 +00:00
|
|
|
width: '100%'
|
|
|
|
},
|
2021-05-21 15:35:36 +00:00
|
|
|
|
|
|
|
lobbyListDescription: {
|
2021-05-26 08:29:21 +00:00
|
|
|
...participantListDescription
|
|
|
|
},
|
|
|
|
|
|
|
|
meetingListDescription: {
|
2021-06-09 12:41:00 +00:00
|
|
|
...participantListDescription,
|
|
|
|
marginLeft: BaseTheme.spacing[3]
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
footer: {
|
2021-05-26 07:15:37 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
backgroundColor: BaseTheme.palette.ui01,
|
2021-05-26 10:03:12 +00:00
|
|
|
bottom: BaseTheme.spacing[0],
|
2021-05-26 07:15:37 +00:00
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'row',
|
2021-05-26 10:03:12 +00:00
|
|
|
height: BaseTheme.spacing[10],
|
2021-07-02 13:43:52 +00:00
|
|
|
justifyContent: 'space-between',
|
2021-05-26 10:03:12 +00:00
|
|
|
paddingRight: BaseTheme.spacing[3],
|
2021-05-26 08:29:21 +00:00
|
|
|
position: 'relative',
|
2021-05-26 10:03:12 +00:00
|
|
|
right: BaseTheme.spacing[0],
|
|
|
|
left: BaseTheme.spacing[0]
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
2021-05-26 07:15:37 +00:00
|
|
|
inviteButton: {
|
2021-05-26 08:29:21 +00:00
|
|
|
backgroundColor: BaseTheme.palette.action01,
|
2021-06-09 12:41:00 +00:00
|
|
|
marginTop: BaseTheme.spacing[2],
|
|
|
|
marginLeft: BaseTheme.spacing[3],
|
|
|
|
marginRight: BaseTheme.spacing[3]
|
2021-05-26 07:15:37 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
inviteLabel: {
|
|
|
|
...BaseTheme.typography.labelButtonLarge,
|
|
|
|
textTransform: 'capitalize'
|
|
|
|
},
|
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
moreButton: {
|
2021-07-02 13:43:52 +00:00
|
|
|
...smallButton
|
2021-06-03 16:23:18 +00:00
|
|
|
},
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
moreIcon: {
|
2021-05-20 16:06:52 +00:00
|
|
|
...buttonContent,
|
2021-07-02 13:43:52 +00:00
|
|
|
height: BaseTheme.spacing[5],
|
2021-07-06 19:07:52 +00:00
|
|
|
marginLeft: 'auto'
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
contextMenuMore: {
|
2021-07-30 09:46:49 +00:00
|
|
|
backgroundColor: BaseTheme.palette.bottomSheet,
|
2021-07-02 13:43:52 +00:00
|
|
|
borderRadius: BaseTheme.shape.borderRadius
|
|
|
|
},
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
muteAllButton: {
|
2021-07-02 13:43:52 +00:00
|
|
|
...muteAllButton
|
2021-05-19 10:08:30 +00:00
|
|
|
},
|
|
|
|
|
2021-07-02 13:43:52 +00:00
|
|
|
muteAllMoreButton: {
|
|
|
|
...muteAllButton,
|
|
|
|
right: BaseTheme.spacing[3]
|
2021-05-26 11:08:00 +00:00
|
|
|
},
|
|
|
|
|
2021-05-26 07:15:37 +00:00
|
|
|
muteAllLabel: {
|
2021-06-09 12:41:00 +00:00
|
|
|
...BaseTheme.typography.labelButtonLarge,
|
2021-05-26 07:15:37 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2021-07-02 13:43:52 +00:00
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
marginVertical: BaseTheme.spacing[0],
|
|
|
|
marginHorizontal: BaseTheme.spacing[0],
|
|
|
|
paddingTop: 12,
|
|
|
|
paddingBottom: 12,
|
|
|
|
textTransform: 'capitalize',
|
|
|
|
width: 94
|
2021-06-03 16:23:18 +00:00
|
|
|
},
|
|
|
|
|
2021-06-04 15:07:18 +00:00
|
|
|
contextMenuItem: {
|
2021-06-03 16:23:18 +00:00
|
|
|
...contextMenuItem
|
|
|
|
},
|
|
|
|
|
2021-06-04 15:07:18 +00:00
|
|
|
contextMenuItemSection: {
|
2021-06-09 12:41:00 +00:00
|
|
|
...contextMenuItem
|
2021-06-03 16:23:18 +00:00
|
|
|
},
|
|
|
|
|
2021-07-02 13:43:52 +00:00
|
|
|
contextMenuItemSectionAvatar: {
|
2021-07-30 09:46:49 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
backgroundColor: BaseTheme.palette.bottomSheet,
|
|
|
|
borderBottomColor: BaseTheme.palette.dividerColor,
|
|
|
|
borderBottomWidth: 1,
|
|
|
|
borderTopLeftRadius: BaseTheme.spacing[3],
|
|
|
|
borderTopRightRadius: BaseTheme.spacing[3],
|
|
|
|
flexDirection: 'row',
|
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
paddingLeft: BaseTheme.spacing[3]
|
2021-07-02 13:43:52 +00:00
|
|
|
},
|
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
contextMenuItemText: {
|
2021-07-02 13:43:52 +00:00
|
|
|
...contextMenuItemText,
|
2021-06-04 15:07:18 +00:00
|
|
|
marginLeft: BaseTheme.spacing[3]
|
|
|
|
},
|
|
|
|
|
|
|
|
contextMenuItemName: {
|
2021-07-30 09:46:49 +00:00
|
|
|
color: BaseTheme.palette.text04,
|
|
|
|
flexShrink: 1,
|
|
|
|
fontSize: BaseTheme.spacing[3],
|
|
|
|
marginLeft: BaseTheme.spacing[3],
|
|
|
|
opacity: 0.90
|
2021-06-09 12:41:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
divider: {
|
2021-07-30 09:46:49 +00:00
|
|
|
backgroundColor: BaseTheme.palette.dividerColor
|
2021-05-14 16:03:23 +00:00
|
|
|
}
|
|
|
|
};
|