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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // @flow
  2. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  3. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
  4. export const SIDEBAR_AVATAR_SIZE = 100;
  5. const SIDEBAR_HEADER_HEIGHT = 150;
  6. export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
  7. export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
  8. /**
  9. * The default color of text on the WelcomePage.
  10. */
  11. const TEXT_COLOR = ColorPalette.white;
  12. /**
  13. * The styles of the React {@code Components} of the feature welcome including
  14. * {@code WelcomePage} and {@code BlankPage}.
  15. */
  16. export default createStyleSheet({
  17. /**
  18. * The audio-video switch itself.
  19. */
  20. audioVideoSwitch: {
  21. marginHorizontal: 5
  22. },
  23. /**
  24. * View that contains the audio-video switch and the labels.
  25. */
  26. audioVideoSwitchContainer: {
  27. alignItems: 'center',
  28. flexDirection: 'row'
  29. },
  30. /**
  31. * Style of the avatar in te side bar.
  32. */
  33. avatar: {
  34. alignSelf: 'center',
  35. flex: 0
  36. },
  37. /**
  38. * Join button style.
  39. */
  40. button: {
  41. backgroundColor: ColorPalette.blue,
  42. borderColor: ColorPalette.blue,
  43. borderRadius: 4,
  44. borderWidth: 1,
  45. height: 30,
  46. justifyContent: 'center',
  47. paddingHorizontal: 20
  48. },
  49. /**
  50. * Renders the button visually disabled.
  51. */
  52. buttonDisabled: {
  53. backgroundColor: '#cccccc',
  54. borderColor: '#999999'
  55. },
  56. /**
  57. * Join button text style.
  58. */
  59. buttonText: {
  60. alignSelf: 'center',
  61. color: ColorPalette.white,
  62. fontSize: 14
  63. },
  64. /**
  65. * The style of the display name label in the side bar.
  66. */
  67. displayName: {
  68. color: ColorPalette.white,
  69. fontSize: 16,
  70. marginTop: BoxModel.margin,
  71. textAlign: 'center'
  72. },
  73. /**
  74. * The welcome screen header style.
  75. */
  76. header: {
  77. justifyContent: 'space-between'
  78. },
  79. /**
  80. * Container for the button on the hint box.
  81. */
  82. hintButtonContainer: {
  83. flexDirection: 'row',
  84. justifyContent: 'center'
  85. },
  86. /**
  87. * Container for the hint box.
  88. */
  89. hintContainer: {
  90. backgroundColor: ColorPalette.white,
  91. borderColor: ColorPalette.white,
  92. borderRadius: 4,
  93. borderWidth: 1,
  94. flexDirection: 'column',
  95. marginVertical: 5,
  96. overflow: 'hidden',
  97. paddingHorizontal: BoxModel.padding,
  98. paddingVertical: 2 * BoxModel.padding
  99. },
  100. /**
  101. * The text of the hint box.
  102. */
  103. hintText: {
  104. textAlign: 'center'
  105. },
  106. /**
  107. * Container for the text on the hint box.
  108. */
  109. hintTextContainer: {
  110. marginBottom: 2 * BoxModel.margin
  111. },
  112. /**
  113. * Container for the items in the side bar.
  114. */
  115. itemContainer: {
  116. flexDirection: 'column',
  117. paddingTop: 10
  118. },
  119. /**
  120. * A view that contains the field and hint box.
  121. */
  122. joinControls: {
  123. padding: BoxModel.padding
  124. },
  125. /**
  126. * The style of the top-level container/{@code View} of
  127. * {@code LocalVideoTrackUnderlay}.
  128. */
  129. localVideoTrackUnderlay: {
  130. alignSelf: 'stretch',
  131. backgroundColor: 'transparent',
  132. flex: 1
  133. },
  134. /**
  135. * Top-level screen style.
  136. */
  137. page: {
  138. flex: 1,
  139. flexDirection: 'column'
  140. },
  141. /**
  142. * Container for room name input box and 'join' button.
  143. */
  144. roomContainer: {
  145. alignSelf: 'stretch',
  146. flexDirection: 'column'
  147. },
  148. /**
  149. * The body of the side bar where the items are.
  150. */
  151. sideBarBody: {
  152. backgroundColor: ColorPalette.white,
  153. flex: 1
  154. },
  155. /**
  156. * The style of the side bar header.
  157. */
  158. sideBarHeader: {
  159. alignItems: 'center',
  160. flexDirection: 'column',
  161. height: SIDEBAR_HEADER_HEIGHT,
  162. justifyContent: 'center',
  163. padding: BoxModel.padding
  164. },
  165. /**
  166. * Style of the menu items in the side bar.
  167. */
  168. sideBarItem: {
  169. padding: 13
  170. },
  171. /**
  172. * The View inside the side bar buttons (icon + text).
  173. */
  174. sideBarItemButtonContainer: {
  175. alignItems: 'center',
  176. flexDirection: 'row',
  177. justifyContent: 'flex-start'
  178. },
  179. /**
  180. * The icon in the side bar item touchables.
  181. */
  182. sideBarItemIcon: {
  183. color: ColorPalette.blueHighlight,
  184. fontSize: 20,
  185. marginRight: 15
  186. },
  187. /**
  188. * The label of the side bar item touchables.
  189. */
  190. sideBarItemText: {
  191. color: ColorPalette.black,
  192. fontWeight: 'bold'
  193. },
  194. /**
  195. * The container of the label of the audio-video switch.
  196. */
  197. switchLabel: {
  198. paddingHorizontal: 3
  199. },
  200. /**
  201. * Room input style.
  202. */
  203. textInput: {
  204. backgroundColor: 'transparent',
  205. borderColor: ColorPalette.white,
  206. borderRadius: 4,
  207. borderWidth: 1,
  208. color: TEXT_COLOR,
  209. fontSize: 23,
  210. height: 50,
  211. padding: 4,
  212. textAlign: 'center'
  213. },
  214. /**
  215. * Application title style.
  216. */
  217. title: {
  218. color: TEXT_COLOR,
  219. fontSize: 25,
  220. marginBottom: 2 * BoxModel.margin,
  221. textAlign: 'center'
  222. },
  223. /**
  224. * The style of the top-level container of {@code WelcomePage}.
  225. */
  226. welcomePage: {
  227. backgroundColor: ColorPalette.blue,
  228. overflow: 'hidden'
  229. }
  230. });