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

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