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.

styles.js 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The base style for toolbars.
  4. *
  5. * @type {Object}
  6. */
  7. const _toolbar = {
  8. flex: 1,
  9. position: 'absolute'
  10. };
  11. /**
  12. * The base style of toolbar buttons (in primaryToolbar and secondaryToolbar).
  13. *
  14. * @type {Object}
  15. */
  16. const _toolbarButton = {
  17. flex: 0,
  18. justifyContent: 'center',
  19. opacity: 0.7
  20. };
  21. /**
  22. * The base icon style of toolbar buttons (in primaryToolbar and
  23. * secondaryToolbar).
  24. *
  25. * @type {Object}
  26. */
  27. const _toolbarButtonIcon = {
  28. alignSelf: 'center'
  29. };
  30. /**
  31. * The style of toolbar buttons in primaryToolbar.
  32. */
  33. const primaryToolbarButton = {
  34. ..._toolbarButton,
  35. backgroundColor: ColorPalette.white,
  36. borderRadius: 30,
  37. borderWidth: 0,
  38. flexDirection: 'row',
  39. height: 60,
  40. margin: BoxModel.margin,
  41. width: 60
  42. };
  43. /**
  44. * The icon style of the toolbar buttons in primaryToolbar.
  45. *
  46. * @type {Object}
  47. */
  48. const primaryToolbarButtonIcon = {
  49. ..._toolbarButtonIcon,
  50. color: ColorPalette.darkGrey,
  51. fontSize: 24
  52. };
  53. /**
  54. * The icon style of the toolbar buttons in secondaryToolbar.
  55. *
  56. * @type {Object}
  57. */
  58. const secondaryToolbarButtonIcon = {
  59. ..._toolbarButtonIcon,
  60. color: ColorPalette.white,
  61. fontSize: 18
  62. };
  63. /**
  64. * The (conference) Toolbox/Toolbar related styles.
  65. */
  66. export default createStyleSheet({
  67. /**
  68. * The style of the toolbar button in {@link #primaryToolbar} which
  69. * hangs the current conference up.
  70. */
  71. hangup: {
  72. ...primaryToolbarButton,
  73. backgroundColor: ColorPalette.red
  74. },
  75. /**
  76. * The style of the toolbar which contains the primary buttons such as
  77. * hangup, audio and video mute.
  78. */
  79. primaryToolbar: {
  80. ..._toolbar,
  81. bottom: 3 * BoxModel.margin,
  82. flexDirection: 'row',
  83. justifyContent: 'center',
  84. left: 0,
  85. right: 0
  86. },
  87. /**
  88. * The style of toolbar buttons in {@link #primaryToolbar}.
  89. */
  90. primaryToolbarButton,
  91. /**
  92. * The icon style of the toolbar buttons in {@link #primaryToolbar}.
  93. */
  94. primaryToolbarButtonIcon,
  95. /**
  96. * The style of the toolbar which contains the secondary buttons such as
  97. * toggle camera facing mode.
  98. */
  99. secondaryToolbar: {
  100. ..._toolbar,
  101. bottom: 0,
  102. flexDirection: 'column',
  103. right: BoxModel.margin,
  104. top: BoxModel.margin * 2
  105. },
  106. /**
  107. * The style of toolbar buttons in {@link #secondaryToolbar}.
  108. */
  109. secondaryToolbarButton: {
  110. ..._toolbarButton,
  111. backgroundColor: ColorPalette.darkGrey,
  112. borderRadius: 20,
  113. flexDirection: 'column',
  114. height: 40,
  115. margin: BoxModel.margin / 2,
  116. width: 40
  117. },
  118. /**
  119. * The icon style of the toolbar buttons in {@link #secondaryToolbar}.
  120. */
  121. secondaryToolbarButtonIcon,
  122. /**
  123. * The style of the root/top-level {@link Container} of {@link Toolbox}
  124. * which contains {@link Toolbar}s.
  125. */
  126. toolbarContainer: {
  127. bottom: 0,
  128. left: 0,
  129. position: 'absolute',
  130. right: 0,
  131. top: 0
  132. },
  133. /**
  134. * The style of toolbar buttons in {@link #primaryToolbar} which display
  135. * white icons.
  136. */
  137. whitePrimaryToolbarButton: {
  138. ...primaryToolbarButton,
  139. backgroundColor: ColorPalette.buttonUnderlay
  140. },
  141. /**
  142. * The icon style of toolbar buttons in {@link #primaryToolbar} which
  143. * display white icons.
  144. */
  145. whitePrimaryToolbarButtonIcon: {
  146. ...primaryToolbarButtonIcon,
  147. color: ColorPalette.white
  148. }
  149. });