2016-12-12 19:49:23 +00:00
|
|
|
import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The base style for (toolbar) buttons.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
const button = {
|
2016-12-14 22:15:17 +00:00
|
|
|
borderRadius: 30,
|
2016-10-05 14:36:59 +00:00
|
|
|
borderWidth: 0,
|
2016-12-12 19:49:23 +00:00
|
|
|
flex: 0,
|
2016-10-05 14:36:59 +00:00
|
|
|
flexDirection: 'row',
|
|
|
|
height: 60,
|
|
|
|
justifyContent: 'center',
|
2016-12-12 19:49:23 +00:00
|
|
|
margin: BoxModel.margin,
|
2016-10-05 14:36:59 +00:00
|
|
|
width: 60
|
|
|
|
};
|
|
|
|
|
2016-12-14 22:15:17 +00:00
|
|
|
/**
|
|
|
|
* Small toolbar button.
|
|
|
|
*
|
|
|
|
* @type {{borderRadius: number, flex: number, flexDirection: string,
|
|
|
|
* height: number, justifyContent: string, margin: number, width: number}}
|
|
|
|
*/
|
|
|
|
const smallButton = {
|
2016-12-15 21:25:01 +00:00
|
|
|
borderRadius: 20,
|
2016-12-14 22:15:17 +00:00
|
|
|
flex: 0,
|
|
|
|
flexDirection: 'column',
|
2016-12-15 21:25:01 +00:00
|
|
|
height: 40,
|
2016-12-14 22:15:17 +00:00
|
|
|
justifyContent: 'center',
|
|
|
|
margin: BoxModel.margin / 2,
|
2016-12-15 21:25:01 +00:00
|
|
|
width: 40
|
2016-12-14 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The base style for icons.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
const icon = {
|
|
|
|
alignSelf: 'center',
|
|
|
|
color: ColorPalette.darkGrey,
|
|
|
|
fontSize: 24
|
2016-10-05 14:36:59 +00:00
|
|
|
};
|
|
|
|
|
2016-12-14 22:15:17 +00:00
|
|
|
/**
|
|
|
|
* Small toolbar button icon.
|
|
|
|
*
|
|
|
|
* @type {{fontSize: number}}
|
|
|
|
*/
|
|
|
|
const smallIcon = {
|
|
|
|
...icon,
|
2016-12-15 21:25:01 +00:00
|
|
|
fontSize: 18
|
2016-12-14 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The base style for toolbars.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
const toolbar = {
|
|
|
|
flex: 1,
|
|
|
|
position: 'absolute'
|
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
|
|
|
*/
|
|
|
|
export const styles = createStyleSheet({
|
|
|
|
/**
|
|
|
|
* The toolbar button icon style.
|
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
icon,
|
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: {
|
2016-12-12 19:49:23 +00:00
|
|
|
...toolbar,
|
|
|
|
bottom: 3 * BoxModel.margin,
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
left: 0,
|
|
|
|
right: 0
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The style of button in primaryToolbar.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
primaryToolbarButton: {
|
|
|
|
...button,
|
|
|
|
backgroundColor: ColorPalette.white,
|
2016-12-14 22:15:17 +00:00
|
|
|
opacity: 0.7
|
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: {
|
|
|
|
...toolbar,
|
|
|
|
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
|
|
|
/**
|
2016-12-12 19:49:23 +00:00
|
|
|
* The style of button in secondaryToolbar.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2016-12-12 19:49:23 +00:00
|
|
|
secondaryToolbarButton: {
|
2016-12-14 22:15:17 +00:00
|
|
|
...smallButton,
|
|
|
|
backgroundColor: ColorPalette.darkGrey,
|
|
|
|
opacity: 0.7
|
2016-10-05 14:36:59 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The style of the root/top-level Container of Toolbar that contains
|
|
|
|
* toolbars.
|
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
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The toolbar white button icon style.
|
|
|
|
*/
|
|
|
|
whiteIcon: {
|
|
|
|
...icon,
|
2016-11-29 20:04:56 +00:00
|
|
|
color: ColorPalette.white
|
2016-12-14 22:15:17 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The secondary toolbar icon style.
|
|
|
|
*/
|
|
|
|
secondaryToolbarIcon: {
|
|
|
|
...smallIcon,
|
|
|
|
color: ColorPalette.white
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
|
|
|
});
|