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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. * Container for the text on the hint box.
  104. */
  105. hintTextContainer: {
  106. marginBottom: 2 * BoxModel.margin
  107. },
  108. /**
  109. * Container for the items in the side bar.
  110. */
  111. itemContainer: {
  112. flexDirection: 'column',
  113. paddingTop: 10
  114. },
  115. /**
  116. * A view that contains the field and hint box.
  117. */
  118. joinControls: {
  119. padding: BoxModel.padding
  120. },
  121. /**
  122. * The style of the top-level container/{@code View} of
  123. * {@code LocalVideoTrackUnderlay}.
  124. */
  125. localVideoTrackUnderlay: {
  126. alignSelf: 'stretch',
  127. backgroundColor: 'transparent',
  128. flex: 1
  129. },
  130. /**
  131. * Top-level screen style.
  132. */
  133. page: {
  134. flex: 1,
  135. flexDirection: 'column'
  136. },
  137. pageIndicator: {
  138. alignItems: 'center',
  139. flex: 1,
  140. flexDirection: 'column',
  141. justifyContent: 'center'
  142. },
  143. pageIndicatorContainer: {
  144. alignItems: 'stretch',
  145. backgroundColor: ColorPalette.blue,
  146. flexDirection: 'row',
  147. height: 56,
  148. justifyContent: 'center'
  149. },
  150. pageIndicatorIcon: {
  151. color: ColorPalette.blueHighlight,
  152. fontSize: 24
  153. },
  154. pageIndicatorText: {
  155. color: ColorPalette.blueHighlight
  156. },
  157. pageIndicatorTextActive: {
  158. color: ColorPalette.white
  159. },
  160. /**
  161. * Top level style of the paged list.
  162. */
  163. pagedList: {
  164. flex: 1
  165. },
  166. pagedListContainer: {
  167. flex: 1,
  168. flexDirection: 'column'
  169. },
  170. /**
  171. * Disabled style for the container.
  172. */
  173. pagedListContainerDisabled: {
  174. opacity: 0.2
  175. },
  176. /**
  177. * Container for room name input box and 'join' button.
  178. */
  179. roomContainer: {
  180. alignSelf: 'stretch',
  181. flexDirection: 'column'
  182. },
  183. /**
  184. * The body of the side bar where the items are.
  185. */
  186. sideBarBody: {
  187. backgroundColor: ColorPalette.white,
  188. flex: 1
  189. },
  190. /**
  191. * The style of the side bar header.
  192. */
  193. sideBarHeader: {
  194. alignItems: 'center',
  195. flexDirection: 'column',
  196. height: SIDEBAR_HEADER_HEIGHT,
  197. justifyContent: 'center',
  198. padding: BoxModel.padding
  199. },
  200. /**
  201. * Style of the menu items in the side bar.
  202. */
  203. sideBarItem: {
  204. padding: 13
  205. },
  206. /**
  207. * The View inside the side bar buttons (icon + text).
  208. */
  209. sideBarItemButtonContainer: {
  210. alignItems: 'center',
  211. flexDirection: 'row',
  212. justifyContent: 'flex-start'
  213. },
  214. /**
  215. * The icon in the side bar item touchables.
  216. */
  217. sideBarItemIcon: {
  218. color: ColorPalette.blueHighlight,
  219. fontSize: 20,
  220. marginRight: 15
  221. },
  222. /**
  223. * The label of the side bar item touchables.
  224. */
  225. sideBarItemText: {
  226. color: ColorPalette.black,
  227. fontWeight: 'bold'
  228. },
  229. /**
  230. * Room input style.
  231. */
  232. textInput: {
  233. backgroundColor: 'transparent',
  234. borderColor: ColorPalette.white,
  235. borderRadius: 4,
  236. borderWidth: 1,
  237. color: TEXT_COLOR,
  238. fontSize: 23,
  239. height: 50,
  240. padding: 4,
  241. textAlign: 'center'
  242. },
  243. /**
  244. * Application title style.
  245. */
  246. title: {
  247. color: TEXT_COLOR,
  248. fontSize: 25,
  249. marginBottom: 2 * BoxModel.margin,
  250. textAlign: 'center'
  251. },
  252. /**
  253. * The style of the top-level container of {@code WelcomePage}.
  254. */
  255. welcomePage: {
  256. backgroundColor: ColorPalette.blue,
  257. overflow: 'hidden'
  258. }
  259. });