205 lines
4.7 KiB
JavaScript
205 lines
4.7 KiB
JavaScript
import { fixAndroidViewClipping } from '../../../base/styles';
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
|
|
|
export const INSECURE_ROOM_NAME_LABEL_COLOR = BaseTheme.palette.actionDanger;
|
|
|
|
const TITLE_BAR_BUTTON_SIZE = 24;
|
|
|
|
|
|
/**
|
|
* The styles of the safe area view that contains the title bar.
|
|
*/
|
|
const titleBarSafeView = {
|
|
left: 0,
|
|
position: 'absolute',
|
|
right: 0,
|
|
top: 0
|
|
};
|
|
|
|
/**
|
|
* The styles of the feature conference.
|
|
*/
|
|
export default {
|
|
|
|
/**
|
|
* {@code Conference} Style.
|
|
*/
|
|
conference: fixAndroidViewClipping({
|
|
alignSelf: 'stretch',
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
flex: 1
|
|
}),
|
|
|
|
displayNameContainer: {
|
|
margin: 10
|
|
},
|
|
|
|
/**
|
|
* View that contains the indicators.
|
|
*/
|
|
indicatorContainer: {
|
|
flex: 1,
|
|
flexDirection: 'row'
|
|
},
|
|
|
|
titleBarButtonContainer: {
|
|
borderRadius: 3,
|
|
height: BaseTheme.spacing[7],
|
|
marginTop: BaseTheme.spacing[1],
|
|
marginRight: BaseTheme.spacing[1],
|
|
zIndex: 1,
|
|
width: BaseTheme.spacing[7]
|
|
},
|
|
|
|
titleBarButton: {
|
|
iconStyle: {
|
|
color: BaseTheme.palette.icon01,
|
|
padding: 12,
|
|
fontSize: TITLE_BAR_BUTTON_SIZE
|
|
},
|
|
underlayColor: 'transparent'
|
|
},
|
|
|
|
lonelyMeetingContainer: {
|
|
alignSelf: 'stretch',
|
|
alignItems: 'center',
|
|
padding: BaseTheme.spacing[3]
|
|
},
|
|
|
|
lonelyMessage: {
|
|
color: BaseTheme.palette.text01,
|
|
paddingVertical: BaseTheme.spacing[2]
|
|
},
|
|
|
|
pipButtonContainer: {
|
|
'&:not(:empty)': {
|
|
borderRadius: 3,
|
|
height: BaseTheme.spacing[7],
|
|
marginTop: BaseTheme.spacing[1],
|
|
marginLeft: BaseTheme.spacing[1],
|
|
zIndex: 1,
|
|
width: BaseTheme.spacing[7]
|
|
}
|
|
},
|
|
|
|
pipButton: {
|
|
iconStyle: {
|
|
color: BaseTheme.palette.icon01,
|
|
padding: 12,
|
|
fontSize: TITLE_BAR_BUTTON_SIZE
|
|
},
|
|
underlayColor: 'transparent'
|
|
},
|
|
|
|
titleBarSafeViewColor: {
|
|
...titleBarSafeView,
|
|
backgroundColor: BaseTheme.palette.uiBackground
|
|
},
|
|
|
|
titleBarSafeViewTransparent: {
|
|
...titleBarSafeView
|
|
},
|
|
|
|
titleBarWrapper: {
|
|
alignItems: 'center',
|
|
flex: 1,
|
|
flexDirection: 'row',
|
|
height: BaseTheme.spacing[8],
|
|
justifyContent: 'center'
|
|
},
|
|
|
|
alwaysOnTitleBar: {
|
|
paddingRight: 0,
|
|
borderRadius: 6,
|
|
backgroundColor: 'rgba(0, 0, 0, .5)',
|
|
marginLeft: BaseTheme.spacing[2],
|
|
flexDirection: 'row',
|
|
alignSelf: 'flex-start',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
marginTop: BaseTheme.spacing[2],
|
|
|
|
'&:not(:empty)': {
|
|
padding: 4
|
|
}
|
|
},
|
|
|
|
expandedLabelWrapper: {
|
|
zIndex: 1
|
|
},
|
|
|
|
roomTimer: {
|
|
...BaseTheme.typography.bodyShortBold,
|
|
color: BaseTheme.palette.text01,
|
|
textAlign: 'center'
|
|
},
|
|
|
|
roomTimerView: {
|
|
backgroundColor: BaseTheme.palette.ui03,
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
height: 32,
|
|
justifyContent: 'center',
|
|
paddingHorizontal: BaseTheme.spacing[2],
|
|
paddingVertical: BaseTheme.spacing[1],
|
|
minWidth: 50
|
|
},
|
|
|
|
roomName: {
|
|
color: BaseTheme.palette.text01,
|
|
...BaseTheme.typography.bodyShortBold,
|
|
paddingVertical: 6
|
|
},
|
|
|
|
roomNameView: {
|
|
backgroundColor: 'rgba(0,0,0,0.6)',
|
|
borderBottomLeftRadius: 3,
|
|
borderTopLeftRadius: 3,
|
|
flexShrink: 1,
|
|
justifyContent: 'center',
|
|
paddingHorizontal: 10
|
|
},
|
|
|
|
roomNameWrapper: {
|
|
flexDirection: 'row',
|
|
marginRight: 10,
|
|
marginLeft: 8,
|
|
flexShrink: 1,
|
|
flexGrow: 1
|
|
},
|
|
|
|
/**
|
|
* The style of the {@link View} which expands over the whole
|
|
* {@link Conference} area and splits it between the {@link Filmstrip} and
|
|
* the {@link Toolbox}.
|
|
*/
|
|
toolboxAndFilmstripContainer: {
|
|
bottom: 0,
|
|
flexDirection: 'column',
|
|
justifyContent: 'flex-end',
|
|
left: 0,
|
|
position: 'absolute',
|
|
right: 0,
|
|
top: 0
|
|
},
|
|
|
|
insecureRoomNameLabel: {
|
|
backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR,
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
height: 32
|
|
},
|
|
|
|
raisedHandsCountLabel: {
|
|
alignItems: 'center',
|
|
backgroundColor: BaseTheme.palette.warning02,
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
flexDirection: 'row',
|
|
marginLeft: BaseTheme.spacing[0],
|
|
marginBottom: BaseTheme.spacing[0]
|
|
},
|
|
|
|
raisedHandsCountLabelText: {
|
|
color: BaseTheme.palette.uiBackground,
|
|
paddingLeft: BaseTheme.spacing[2]
|
|
}
|
|
};
|