123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
-
- /**
- * The base style for (toolbar) buttons.
- *
- * @type {Object}
- */
- const button = {
- borderRadius: 30,
- borderWidth: 0,
- flex: 0,
- flexDirection: 'row',
- height: 60,
- justifyContent: 'center',
- margin: BoxModel.margin,
- width: 60
- };
-
- /**
- * Small toolbar button.
- *
- * @type {{borderRadius: number, flex: number, flexDirection: string,
- * height: number, justifyContent: string, margin: number, width: number}}
- */
- const smallButton = {
- borderRadius: 20,
- flex: 0,
- flexDirection: 'column',
- height: 40,
- justifyContent: 'center',
- margin: BoxModel.margin / 2,
- width: 40
- };
-
- /**
- * The base style for icons.
- *
- * @type {Object}
- */
- const icon = {
- alignSelf: 'center',
- color: ColorPalette.darkGrey,
- fontSize: 24
- };
-
- /**
- * Small toolbar button icon.
- *
- * @type {{fontSize: number}}
- */
- const smallIcon = {
- ...icon,
- fontSize: 18
- };
-
- /**
- * The base style for toolbars.
- *
- * @type {Object}
- */
- const toolbar = {
- flex: 1,
- position: 'absolute'
- };
-
- /**
- * The (conference) Toolbox/Toolbar related styles.
- */
- export const styles = createStyleSheet({
- /**
- * The toolbar button icon style.
- */
- icon,
-
- /**
- * The style of the toolbar which contains the primary buttons such as
- * hangup, audio and video mute.
- */
- primaryToolbar: {
- ...toolbar,
- bottom: 3 * BoxModel.margin,
- flexDirection: 'row',
- justifyContent: 'center',
- left: 0,
- right: 0
- },
-
- /**
- * The style of button in primaryToolbar.
- */
- primaryToolbarButton: {
- ...button,
- backgroundColor: ColorPalette.white,
- opacity: 0.7
- },
-
- /**
- * The style of the toolbar which contains the secondary buttons such as
- * toggle camera facing mode.
- */
- secondaryToolbar: {
- ...toolbar,
- bottom: 0,
- flexDirection: 'column',
- right: BoxModel.margin,
- top: BoxModel.margin * 2
- },
-
- /**
- * The style of button in secondaryToolbar.
- */
- secondaryToolbarButton: {
- ...smallButton,
- backgroundColor: ColorPalette.darkGrey,
- opacity: 0.7
- },
-
- /**
- * The style of the root/top-level Container of Toolbar that contains
- * toolbars.
- */
- toolbarContainer: {
- bottom: 0,
- left: 0,
- position: 'absolute',
- right: 0,
- top: 0
- },
-
- /**
- * The toolbar white button icon style.
- */
- whiteIcon: {
- ...icon,
- color: ColorPalette.white
- },
-
- /**
- * The secondary toolbar icon style.
- */
- secondaryToolbarIcon: {
- ...smallIcon,
- color: ColorPalette.white
- }
- });
|