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 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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: 0,
  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 icon style of toolbar buttons in {@link #primaryToolbar} which
  77. * hangs the current conference up.
  78. */
  79. hangupButtonIcon: {
  80. ...primaryToolbarButtonIcon,
  81. color: ColorPalette.white
  82. },
  83. /**
  84. * The style of the toolbar which contains the primary buttons such as
  85. * hangup, audio and video mute.
  86. */
  87. primaryToolbar: {
  88. ..._toolbar,
  89. bottom: 0,
  90. flexDirection: 'row',
  91. justifyContent: 'center',
  92. left: 0,
  93. right: 0
  94. },
  95. /**
  96. * The style of toolbar buttons in {@link #primaryToolbar}.
  97. */
  98. primaryToolbarButton,
  99. /**
  100. * The icon style of the toolbar buttons in {@link #primaryToolbar}.
  101. */
  102. primaryToolbarButtonIcon,
  103. /**
  104. * The style of the toolbar which contains the secondary buttons such as
  105. * toggle camera facing mode.
  106. */
  107. secondaryToolbar: {
  108. ..._toolbar,
  109. bottom: 0,
  110. flexDirection: 'column',
  111. right: 0,
  112. top: 0
  113. },
  114. /**
  115. * The style of toolbar buttons in {@link #secondaryToolbar}.
  116. */
  117. secondaryToolbarButton: {
  118. ..._toolbarButton,
  119. backgroundColor: ColorPalette.darkGrey,
  120. borderRadius: 20,
  121. flexDirection: 'column',
  122. height: 40,
  123. margin: BoxModel.margin / 2,
  124. width: 40
  125. },
  126. /**
  127. * The icon style of the toolbar buttons in {@link #secondaryToolbar}.
  128. */
  129. secondaryToolbarButtonIcon,
  130. /**
  131. * The style of the root/top-level {@link Container} of {@link Toolbox}
  132. * which contains {@link Toolbar}s. This is narrow layout version which
  133. * spans from the top of the screen to the top of the filmstrip located at
  134. * the bottom of the screen.
  135. */
  136. toolboxNarrow: {
  137. flexDirection: 'column',
  138. flexGrow: 1
  139. },
  140. /**
  141. * The style of the root/top-level {@link Container} of {@link Toolbox}
  142. * which contains {@link Toolbar}s. This is wide layout version which spans
  143. * from the top to the bottom of the screen and is located to the right of
  144. * the filmstrip which is displayed as a column on the left side of the
  145. * screen.
  146. */
  147. toolboxWide: {
  148. bottom: 0,
  149. left: 0,
  150. position: 'absolute',
  151. right: 0,
  152. top: 0
  153. },
  154. /**
  155. * The style of toolbar buttons in {@link #primaryToolbar} which display
  156. * white icons.
  157. */
  158. whitePrimaryToolbarButton: {
  159. ...primaryToolbarButton,
  160. backgroundColor: ColorPalette.buttonUnderlay
  161. },
  162. /**
  163. * The icon style of toolbar buttons in {@link #primaryToolbar} which
  164. * display white icons.
  165. */
  166. whitePrimaryToolbarButtonIcon: {
  167. ...primaryToolbarButtonIcon,
  168. color: ColorPalette.white
  169. }
  170. });