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.8KB

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