235 lines
5.4 KiB
JavaScript
235 lines
5.4 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;
|
|
const HEADER_ACTION_BUTTON_SIZE = 17;
|
|
|
|
|
|
/**
|
|
* 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
|
|
},
|
|
|
|
headerNavigationButton: {
|
|
height: BaseTheme.spacing[6],
|
|
marginTop: 20,
|
|
width: BaseTheme.spacing[6]
|
|
},
|
|
|
|
headerNavigationText: {
|
|
color: BaseTheme.palette.text01,
|
|
fontSize: HEADER_ACTION_BUTTON_SIZE
|
|
},
|
|
|
|
headerNavigationTextBold: {
|
|
...BaseTheme.typography.labelButton,
|
|
color: BaseTheme.palette.text01,
|
|
fontSize: HEADER_ACTION_BUTTON_SIZE
|
|
},
|
|
|
|
/**
|
|
* 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]
|
|
},
|
|
|
|
inviteButton: {
|
|
iconStyle: {
|
|
color: BaseTheme.palette.icon01,
|
|
padding: 12,
|
|
fontSize: TITLE_BAR_BUTTON_SIZE
|
|
},
|
|
underlayColor: BaseTheme.spacing.underlay01
|
|
},
|
|
|
|
lonelyButton: {
|
|
alignItems: 'center',
|
|
backgroundColor: BaseTheme.palette.action01,
|
|
borderRadius: 24,
|
|
flexDirection: 'row',
|
|
height: BaseTheme.spacing[6],
|
|
justifyContent: 'space-around',
|
|
paddingHorizontal: 12
|
|
},
|
|
|
|
lonelyButtonComponents: {
|
|
color: BaseTheme.palette.text01,
|
|
marginHorizontal: 6
|
|
},
|
|
|
|
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: BaseTheme.spacing.underlay01
|
|
},
|
|
|
|
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: {
|
|
color: BaseTheme.palette.text01,
|
|
...BaseTheme.typography.bodyShortBold,
|
|
paddingHorizontal: 8,
|
|
paddingVertical: 6,
|
|
textAlign: 'center'
|
|
},
|
|
|
|
roomTimerView: {
|
|
backgroundColor: BaseTheme.palette.action02,
|
|
borderRadius: 3,
|
|
justifyContent: 'center',
|
|
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
|
|
},
|
|
|
|
raisedHandsCountLabel: {
|
|
backgroundColor: BaseTheme.palette.warning02,
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
marginLeft: BaseTheme.spacing[0],
|
|
marginBottom: BaseTheme.spacing[0],
|
|
marginRight: BaseTheme.spacing[1]
|
|
},
|
|
|
|
raisedHandsCountLabelText: {
|
|
color: BaseTheme.palette.uiBackground,
|
|
paddingLeft: BaseTheme.spacing[2]
|
|
}
|
|
};
|