2016-12-12 19:49:23 +00:00
|
|
|
import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The base style for toolbars.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
const _toolbar = {
|
|
|
|
flex: 1,
|
|
|
|
position: 'absolute'
|
2016-10-05 14:36:59 +00:00
|
|
|
};
|
|
|
|
|
2016-12-14 22:15:17 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The base style of toolbar buttons (in primaryToolbar and secondaryToolbar).
|
2016-12-14 22:15:17 +00:00
|
|
|
*
|
2017-04-11 17:00:41 +00:00
|
|
|
* @type {Object}
|
2016-12-14 22:15:17 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
const _toolbarButton = {
|
2016-12-14 22:15:17 +00:00
|
|
|
flex: 0,
|
|
|
|
justifyContent: 'center',
|
2017-04-11 17:00:41 +00:00
|
|
|
opacity: 0.7
|
2016-12-14 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The base icon style of toolbar buttons (in primaryToolbar and
|
|
|
|
* secondaryToolbar).
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
const _toolbarButtonIcon = {
|
|
|
|
alignSelf: 'center'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The style of toolbar buttons in primaryToolbar.
|
|
|
|
*/
|
|
|
|
const primaryToolbarButton = {
|
|
|
|
..._toolbarButton,
|
|
|
|
backgroundColor: ColorPalette.white,
|
|
|
|
borderRadius: 30,
|
|
|
|
borderWidth: 0,
|
|
|
|
flexDirection: 'row',
|
|
|
|
height: 60,
|
|
|
|
margin: BoxModel.margin,
|
|
|
|
width: 60
|
2016-10-05 14:36:59 +00:00
|
|
|
};
|
|
|
|
|
2016-12-14 22:15:17 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The icon style of the toolbar buttons in primaryToolbar.
|
2016-12-14 22:15:17 +00:00
|
|
|
*
|
2017-04-11 17:00:41 +00:00
|
|
|
* @type {Object}
|
2016-12-14 22:15:17 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
const primaryToolbarButtonIcon = {
|
|
|
|
..._toolbarButtonIcon,
|
|
|
|
color: ColorPalette.darkGrey,
|
|
|
|
fontSize: 24
|
2016-12-14 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The icon style of the toolbar buttons in secondaryToolbar.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
const secondaryToolbarButtonIcon = {
|
|
|
|
..._toolbarButtonIcon,
|
|
|
|
color: ColorPalette.white,
|
|
|
|
fontSize: 18
|
2016-10-05 14:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The (conference) Toolbox/Toolbar related styles.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-06-10 22:50:42 +00:00
|
|
|
export default createStyleSheet({
|
2017-04-11 14:15:33 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The style of the toolbar button in {@link #primaryToolbar} which
|
|
|
|
* hangs the current conference up.
|
2017-04-11 14:15:33 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
hangup: {
|
|
|
|
...primaryToolbarButton,
|
|
|
|
backgroundColor: ColorPalette.red
|
2017-04-11 14:15:33 +00:00
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2016-12-11 23:39:31 +00:00
|
|
|
* The style of the toolbar which contains the primary buttons such as
|
|
|
|
* hangup, audio and video mute.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2016-12-11 23:39:31 +00:00
|
|
|
primaryToolbar: {
|
2017-04-11 17:00:41 +00:00
|
|
|
..._toolbar,
|
2016-12-12 19:49:23 +00:00
|
|
|
bottom: 3 * BoxModel.margin,
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
left: 0,
|
|
|
|
right: 0
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The style of toolbar buttons in {@link #primaryToolbar}.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
primaryToolbarButton,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The icon style of the toolbar buttons in {@link #primaryToolbar}.
|
|
|
|
*/
|
|
|
|
primaryToolbarButtonIcon,
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2016-12-11 23:39:31 +00:00
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The style of the toolbar which contains the secondary buttons such as
|
|
|
|
* toggle camera facing mode.
|
2016-12-11 23:39:31 +00:00
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
secondaryToolbar: {
|
2017-04-11 17:00:41 +00:00
|
|
|
..._toolbar,
|
2016-12-12 19:49:23 +00:00
|
|
|
bottom: 0,
|
|
|
|
flexDirection: 'column',
|
2016-12-14 22:15:17 +00:00
|
|
|
right: BoxModel.margin,
|
|
|
|
top: BoxModel.margin * 2
|
2016-12-11 23:39:31 +00:00
|
|
|
},
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The style of toolbar buttons in {@link #secondaryToolbar}.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
secondaryToolbarButton: {
|
2017-04-11 17:00:41 +00:00
|
|
|
..._toolbarButton,
|
2016-12-14 22:15:17 +00:00
|
|
|
backgroundColor: ColorPalette.darkGrey,
|
2017-04-11 17:00:41 +00:00
|
|
|
borderRadius: 20,
|
|
|
|
flexDirection: 'column',
|
|
|
|
height: 40,
|
|
|
|
margin: BoxModel.margin / 2,
|
|
|
|
width: 40
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
2017-04-11 14:15:33 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The icon style of the toolbar buttons in {@link #secondaryToolbar}.
|
2017-04-11 14:15:33 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
secondaryToolbarButtonIcon,
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The style of the root/top-level {@link Container} of {@link Toolbox}
|
|
|
|
* which contains {@link Toolbar}s.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
|
|
|
toolbarContainer: {
|
|
|
|
bottom: 0,
|
2016-12-12 19:49:23 +00:00
|
|
|
left: 0,
|
|
|
|
position: 'absolute',
|
|
|
|
right: 0,
|
2016-10-05 14:36:59 +00:00
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-11 17:00:41 +00:00
|
|
|
* The style of toolbar buttons in {@link #primaryToolbar} which display
|
|
|
|
* white icons.
|
|
|
|
*/
|
|
|
|
whitePrimaryToolbarButton: {
|
|
|
|
...primaryToolbarButton,
|
|
|
|
backgroundColor: ColorPalette.buttonUnderlay
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The icon style of toolbar buttons in {@link #primaryToolbar} which
|
|
|
|
* display white icons.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-04-11 17:00:41 +00:00
|
|
|
whitePrimaryToolbarButtonIcon: {
|
|
|
|
...primaryToolbarButtonIcon,
|
2016-11-29 20:04:56 +00:00
|
|
|
color: ColorPalette.white
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
|
|
|
});
|