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.

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