| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 | 
							- // @flow
 - 
 - import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
 - import { BoxModel, ColorPalette } from '../../../base/styles';
 - 
 - const BUTTON_SIZE = 50;
 - 
 - // Toolbox, toolbar:
 - 
 - /**
 -  * The style of toolbar buttons.
 -  */
 - const toolbarButton = {
 -     backgroundColor: schemeColor('button'),
 -     borderRadius: BUTTON_SIZE / 2,
 -     borderWidth: 0,
 -     flex: 0,
 -     flexDirection: 'row',
 -     height: BUTTON_SIZE,
 -     justifyContent: 'center',
 - 
 -     // XXX We probably tested BoxModel.margin and discovered it to be too small
 -     // for our taste.
 -     marginHorizontal: 7,
 -     width: BUTTON_SIZE
 - };
 - 
 - /**
 -  * The icon style of the toolbar buttons.
 -  */
 - const toolbarButtonIcon = {
 -     alignSelf: 'center',
 -     color: ColorPalette.darkGrey,
 -     fontSize: 22
 - };
 - 
 - /**
 -  * The style of toolbar buttons which display white icons.
 -  */
 - const whiteToolbarButton = {
 -     ...toolbarButton,
 -     backgroundColor: schemeColor('buttonToggled')
 - };
 - 
 - /**
 -  * The icon style of toolbar buttons which display white icons.
 -  */
 - const whiteToolbarButtonIcon = {
 -     ...toolbarButtonIcon,
 -     color: ColorPalette.white
 - };
 - 
 - /**
 -  * The Toolbox and toolbar related styles.
 -  */
 - const styles = {
 - 
 -     /**
 -      * The style of the toolbar.
 -      */
 -     toolbar: {
 -         alignItems: 'center',
 -         flexDirection: 'row',
 -         flexGrow: 0,
 -         justifyContent: 'center',
 -         marginBottom: BoxModel.margin / 2,
 -         paddingHorizontal: BoxModel.margin
 -     },
 - 
 -     /**
 -      * The style of the root/top-level {@link Container} of {@link Toolbox}.
 -      */
 -     toolbox: {
 -         flexDirection: 'column',
 -         flexGrow: 0
 -     }
 - };
 - 
 - export default styles;
 - 
 - /**
 -  * Color schemed styles for the @{Toolbox} component.
 -  */
 - ColorSchemeRegistry.register('Toolbox', {
 -     /**
 -      * Styles for buttons in the toolbar.
 -      */
 -     buttonStyles: {
 -         iconStyle: toolbarButtonIcon,
 -         style: toolbarButton
 -     },
 - 
 -     buttonStylesBorderless: {
 -         iconStyle: whiteToolbarButtonIcon,
 -         style: {
 -             ...toolbarButton,
 -             backgroundColor: 'transparent'
 -         }
 -     },
 - 
 -     /**
 -      * Overrides to the standard styles that we apply to the chat button, as
 -      * that behaves slightly differently to other buttons.
 -      */
 -     chatButtonOverride: {
 -         toggled: {
 -             backgroundColor: ColorPalette.blue
 -         }
 -     },
 - 
 -     hangupButtonStyles: {
 -         iconStyle: whiteToolbarButtonIcon,
 -         style: {
 -             ...toolbarButton,
 -             backgroundColor: schemeColor('hangup')
 -         },
 -         underlayColor: ColorPalette.buttonUnderlay
 -     },
 - 
 -     /**
 -      * Styles for toggled buttons in the toolbar.
 -      */
 -     toggledButtonStyles: {
 -         iconStyle: whiteToolbarButtonIcon,
 -         style: {
 -             ...whiteToolbarButton,
 -             borderColor: schemeColor('buttonToggledBorder'),
 -             borderWidth: 1
 -         }
 -     }
 - });
 
 
  |