2022-02-23 13:46:38 +00:00
|
|
|
import { fixAndroidViewClipping } from '../../../base/styles';
|
2021-11-11 14:32:56 +00:00
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
2019-02-05 10:10:15 +00:00
|
|
|
|
2021-12-17 13:05:12 +00:00
|
|
|
export const INSECURE_ROOM_NAME_LABEL_COLOR = BaseTheme.palette.actionDanger;
|
2019-07-12 08:06:49 +00:00
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
const TITLE_BAR_BUTTON_SIZE = 24;
|
2022-02-11 09:49:49 +00:00
|
|
|
const HEADER_ACTION_BUTTON_SIZE = 17;
|
2021-09-14 10:49:23 +00:00
|
|
|
|
2021-11-25 16:41:03 +00:00
|
|
|
|
|
|
|
/**
|
2022-01-13 12:15:53 +00:00
|
|
|
* The styles of the safe area view that contains the title bar.
|
2021-11-25 16:41:03 +00:00
|
|
|
*/
|
2022-01-13 12:15:53 +00:00
|
|
|
const titleBarSafeView = {
|
2021-11-25 16:41:03 +00:00
|
|
|
left: 0,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
};
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-06-10 22:50:42 +00:00
|
|
|
* The styles of the feature conference.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2019-07-12 08:06:49 +00:00
|
|
|
export default {
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2021-11-04 21:10:43 +00:00
|
|
|
* {@code Conference} Style.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-02-16 21:17:05 +00:00
|
|
|
conference: fixAndroidViewClipping({
|
2016-10-05 14:36:59 +00:00
|
|
|
alignSelf: 'stretch',
|
2021-11-11 14:32:56 +00:00
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
2016-10-05 14:36:59 +00:00
|
|
|
flex: 1
|
2017-09-14 10:18:47 +00:00
|
|
|
}),
|
|
|
|
|
2020-07-16 15:41:43 +00:00
|
|
|
displayNameContainer: {
|
|
|
|
margin: 10
|
|
|
|
},
|
2021-10-20 19:29:21 +00:00
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
headerNavigationButton: {
|
|
|
|
height: BaseTheme.spacing[6],
|
2022-01-07 14:48:36 +00:00
|
|
|
marginTop: 20,
|
2021-11-11 14:32:56 +00:00
|
|
|
width: BaseTheme.spacing[6]
|
|
|
|
},
|
|
|
|
|
2022-07-07 15:05:58 +00:00
|
|
|
headerNavigationIcon: {
|
|
|
|
marginLeft: 12
|
|
|
|
},
|
|
|
|
|
2022-02-11 09:49:49 +00:00
|
|
|
headerNavigationText: {
|
|
|
|
color: BaseTheme.palette.text01,
|
2022-07-07 15:05:58 +00:00
|
|
|
marginLeft: BaseTheme.spacing[3],
|
2022-06-08 13:26:04 +00:00
|
|
|
fontSize: HEADER_ACTION_BUTTON_SIZE
|
2022-02-11 09:49:49 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
headerNavigationTextBold: {
|
|
|
|
...BaseTheme.typography.labelButton,
|
|
|
|
color: BaseTheme.palette.text01,
|
2022-07-07 15:05:58 +00:00
|
|
|
marginRight: BaseTheme.spacing[3],
|
2022-06-08 13:26:04 +00:00
|
|
|
fontSize: HEADER_ACTION_BUTTON_SIZE
|
2022-02-11 09:49:49 +00:00
|
|
|
},
|
|
|
|
|
2019-02-05 10:10:15 +00:00
|
|
|
/**
|
|
|
|
* View that contains the indicators.
|
|
|
|
*/
|
|
|
|
indicatorContainer: {
|
|
|
|
flex: 1,
|
2021-04-08 08:35:26 +00:00
|
|
|
flexDirection: 'row'
|
2019-02-05 10:10:15 +00:00
|
|
|
},
|
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
titleBarButtonContainer: {
|
2021-11-25 16:41:03 +00:00
|
|
|
borderRadius: 3,
|
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
marginTop: BaseTheme.spacing[1],
|
|
|
|
marginRight: BaseTheme.spacing[1],
|
|
|
|
zIndex: 1,
|
|
|
|
width: BaseTheme.spacing[7]
|
2021-09-14 10:49:23 +00:00
|
|
|
},
|
|
|
|
|
2022-07-11 08:58:33 +00:00
|
|
|
titleBarButton: {
|
2021-09-14 10:49:23 +00:00
|
|
|
iconStyle: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.icon01,
|
2021-11-25 16:41:03 +00:00
|
|
|
padding: 12,
|
2022-01-13 12:15:53 +00:00
|
|
|
fontSize: TITLE_BAR_BUTTON_SIZE
|
2021-09-14 10:49:23 +00:00
|
|
|
},
|
2022-10-13 13:13:00 +00:00
|
|
|
underlayColor: 'transparent'
|
2021-09-14 10:49:23 +00:00
|
|
|
},
|
2019-02-05 10:10:15 +00:00
|
|
|
|
2020-03-20 17:30:46 +00:00
|
|
|
lonelyButton: {
|
2022-07-11 15:07:55 +00:00
|
|
|
borderRadius: BaseTheme.spacing[4]
|
2020-03-20 17:30:46 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
lonelyMeetingContainer: {
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
alignItems: 'center',
|
2022-02-23 13:46:38 +00:00
|
|
|
padding: BaseTheme.spacing[3]
|
2020-03-20 17:30:46 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
lonelyMessage: {
|
2022-06-20 21:09:13 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2022-02-23 13:46:38 +00:00
|
|
|
paddingVertical: BaseTheme.spacing[2]
|
2020-03-20 17:30:46 +00:00
|
|
|
},
|
|
|
|
|
2021-05-04 13:10:17 +00:00
|
|
|
pipButtonContainer: {
|
2022-01-13 12:15:53 +00:00
|
|
|
'&:not(:empty)': {
|
|
|
|
borderRadius: 3,
|
|
|
|
height: BaseTheme.spacing[7],
|
|
|
|
marginTop: BaseTheme.spacing[1],
|
|
|
|
marginLeft: BaseTheme.spacing[1],
|
|
|
|
zIndex: 1,
|
|
|
|
width: BaseTheme.spacing[7]
|
|
|
|
}
|
2021-05-04 13:10:17 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
pipButton: {
|
2019-01-30 15:43:57 +00:00
|
|
|
iconStyle: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.icon01,
|
2021-11-25 16:41:03 +00:00
|
|
|
padding: 12,
|
2022-01-13 12:15:53 +00:00
|
|
|
fontSize: TITLE_BAR_BUTTON_SIZE
|
2019-01-30 15:43:57 +00:00
|
|
|
},
|
2022-10-13 13:13:00 +00:00
|
|
|
underlayColor: 'transparent'
|
2019-01-30 15:43:57 +00:00
|
|
|
},
|
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
titleBarSafeViewColor: {
|
|
|
|
...titleBarSafeView,
|
2021-11-25 16:41:03 +00:00
|
|
|
backgroundColor: BaseTheme.palette.uiBackground
|
|
|
|
},
|
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
titleBarSafeViewTransparent: {
|
|
|
|
...titleBarSafeView
|
2019-01-30 15:43:57 +00:00
|
|
|
},
|
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
titleBarWrapper: {
|
2019-01-30 15:43:57 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
2021-11-25 16:41:03 +00:00
|
|
|
height: BaseTheme.spacing[8],
|
|
|
|
justifyContent: 'center'
|
2019-01-30 15:43:57 +00:00
|
|
|
},
|
|
|
|
|
2022-01-13 12:15:53 +00:00
|
|
|
alwaysOnTitleBar: {
|
|
|
|
paddingRight: 0,
|
|
|
|
borderRadius: 6,
|
|
|
|
backgroundColor: 'rgba(0, 0, 0, .5)',
|
|
|
|
marginLeft: BaseTheme.spacing[2],
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignSelf: 'flex-start',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
2022-01-31 09:47:53 +00:00
|
|
|
marginTop: BaseTheme.spacing[2],
|
|
|
|
|
|
|
|
'&:not(:empty)': {
|
|
|
|
padding: 4
|
|
|
|
}
|
2022-01-13 12:15:53 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
expandedLabelWrapper: {
|
|
|
|
zIndex: 1
|
|
|
|
},
|
|
|
|
|
2020-01-13 17:12:25 +00:00
|
|
|
roomTimer: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2022-01-13 12:15:53 +00:00
|
|
|
...BaseTheme.typography.bodyShortBold,
|
|
|
|
paddingHorizontal: 8,
|
|
|
|
paddingVertical: 6,
|
|
|
|
textAlign: 'center'
|
2021-03-18 13:05:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
roomTimerView: {
|
2022-07-07 12:29:18 +00:00
|
|
|
backgroundColor: BaseTheme.palette.ui03,
|
2021-11-25 16:41:03 +00:00
|
|
|
borderRadius: 3,
|
2021-03-18 13:05:08 +00:00
|
|
|
justifyContent: 'center',
|
2021-04-08 08:35:26 +00:00
|
|
|
minWidth: 50
|
2020-01-13 17:12:25 +00:00
|
|
|
},
|
|
|
|
|
2019-01-30 15:43:57 +00:00
|
|
|
roomName: {
|
2021-11-11 14:32:56 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
2022-01-13 12:15:53 +00:00
|
|
|
...BaseTheme.typography.bodyShortBold,
|
|
|
|
paddingVertical: 6
|
2019-01-30 15:43:57 +00:00
|
|
|
},
|
|
|
|
|
2021-03-18 13:05:08 +00:00
|
|
|
roomNameView: {
|
|
|
|
backgroundColor: 'rgba(0,0,0,0.6)',
|
|
|
|
borderBottomLeftRadius: 3,
|
|
|
|
borderTopLeftRadius: 3,
|
2021-04-08 08:35:26 +00:00
|
|
|
flexShrink: 1,
|
2021-03-18 13:05:08 +00:00
|
|
|
justifyContent: 'center',
|
2022-01-13 12:15:53 +00:00
|
|
|
paddingHorizontal: 10
|
2021-03-18 13:05:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
roomNameWrapper: {
|
2021-09-14 10:49:23 +00:00
|
|
|
flexDirection: 'row',
|
2022-01-13 12:15:53 +00:00
|
|
|
marginRight: 10,
|
|
|
|
marginLeft: 8,
|
|
|
|
flexShrink: 1,
|
|
|
|
flexGrow: 1
|
2021-03-18 13:05:08 +00:00
|
|
|
},
|
|
|
|
|
2017-10-13 16:13:46 +00:00
|
|
|
/**
|
2017-11-07 22:59:34 +00:00
|
|
|
* 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}.
|
2017-10-13 16:13:46 +00:00
|
|
|
*/
|
|
|
|
toolboxAndFilmstripContainer: {
|
2019-07-12 08:06:49 +00:00
|
|
|
bottom: 0,
|
2017-10-13 16:13:46 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'flex-end',
|
2018-05-18 11:50:34 +00:00
|
|
|
left: 0,
|
2017-10-13 16:13:46 +00:00
|
|
|
position: 'absolute',
|
2018-05-18 11:50:34 +00:00
|
|
|
right: 0,
|
2021-03-18 11:43:11 +00:00
|
|
|
top: 0
|
2020-05-18 12:07:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
insecureRoomNameLabel: {
|
|
|
|
backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR
|
2022-01-13 12:15:53 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
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]
|
2017-09-14 10:18:47 +00:00
|
|
|
}
|
2019-07-12 08:06:49 +00:00
|
|
|
};
|