You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The base style for (toolbar) buttons.
  4. *
  5. * @type {Object}
  6. */
  7. const button = {
  8. borderRadius: 35,
  9. borderWidth: 0,
  10. flex: 0,
  11. flexDirection: 'row',
  12. height: 60,
  13. justifyContent: 'center',
  14. margin: BoxModel.margin,
  15. width: 60
  16. };
  17. /**
  18. * The base style for icons.
  19. *
  20. * @type {Object}
  21. */
  22. const icon = {
  23. alignSelf: 'center',
  24. color: ColorPalette.darkGrey,
  25. fontSize: 24
  26. };
  27. /**
  28. * The base style for toolbars.
  29. *
  30. * @type {Object}
  31. */
  32. const toolbar = {
  33. flex: 1,
  34. position: 'absolute'
  35. };
  36. /**
  37. * The (conference) toolbar related styles.
  38. */
  39. export const styles = createStyleSheet({
  40. /**
  41. * The toolbar button icon style.
  42. */
  43. icon,
  44. /**
  45. * The style of the toolbar which contains the primary buttons such as
  46. * hangup, audio and video mute.
  47. */
  48. primaryToolbar: {
  49. ...toolbar,
  50. bottom: 3 * BoxModel.margin,
  51. flexDirection: 'row',
  52. justifyContent: 'center',
  53. left: 0,
  54. right: 0
  55. },
  56. /**
  57. * The style of button in primaryToolbar.
  58. */
  59. primaryToolbarButton: {
  60. ...button,
  61. backgroundColor: ColorPalette.white,
  62. opacity: 0.8
  63. },
  64. /**
  65. * The style of the toolbar which contains the secondary buttons such as
  66. * toggle camera facing mode.
  67. */
  68. secondaryToolbar: {
  69. ...toolbar,
  70. bottom: 0,
  71. flexDirection: 'column',
  72. right: 0,
  73. top: 0
  74. },
  75. /**
  76. * The style of button in secondaryToolbar.
  77. */
  78. secondaryToolbarButton: {
  79. ...button,
  80. backgroundColor: 'transparent'
  81. },
  82. /**
  83. * The style of the root/top-level Container of Toolbar.
  84. */
  85. toolbarContainer: {
  86. bottom: 0,
  87. left: 0,
  88. position: 'absolute',
  89. right: 0,
  90. top: 0
  91. },
  92. /**
  93. * The toolbar white button icon style.
  94. */
  95. whiteIcon: {
  96. ...icon,
  97. color: ColorPalette.white
  98. }
  99. });