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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. // @flow
  2. import { StyleSheet } from 'react-native';
  3. import { BoxModel, ColorPalette } from '../../base/styles';
  4. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.5)';
  5. export const SIDEBAR_AVATAR_SIZE = 100;
  6. const SIDEBAR_HEADER_HEIGHT = 150;
  7. export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
  8. export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
  9. /**
  10. * The default color of text on the WelcomePage.
  11. */
  12. const TEXT_COLOR = ColorPalette.white;
  13. /**
  14. * The styles of the React {@code Components} of the feature welcome including
  15. * {@code WelcomePage} and {@code BlankPage}.
  16. */
  17. export default {
  18. /**
  19. * The audio-video switch itself.
  20. */
  21. audioVideoSwitch: {
  22. marginHorizontal: 5
  23. },
  24. /**
  25. * View that contains the audio-video switch and the labels.
  26. */
  27. audioVideoSwitchContainer: {
  28. alignItems: 'center',
  29. flexDirection: 'row'
  30. },
  31. /**
  32. * View that is rendered when there is no welcome page.
  33. */
  34. blankPageWrapper: {
  35. ...StyleSheet.absoluteFillObject,
  36. alignItems: 'center',
  37. flex: 1,
  38. flexDirection: 'column',
  39. justifyContent: 'center'
  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. * Join button text style.
  55. */
  56. buttonText: {
  57. alignSelf: 'center',
  58. color: ColorPalette.white,
  59. fontSize: 14
  60. },
  61. /**
  62. * The style of the display name label in the side bar.
  63. */
  64. displayName: {
  65. color: ColorPalette.white,
  66. fontSize: 16,
  67. marginTop: BoxModel.margin,
  68. textAlign: 'center'
  69. },
  70. enterRoomText: {
  71. color: TEXT_COLOR,
  72. fontSize: 18,
  73. marginBottom: BoxModel.margin
  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. * The styles for reduced UI mode.
  145. */
  146. reducedUIContainer: {
  147. alignItems: 'center',
  148. backgroundColor: ColorPalette.blue,
  149. flex: 1,
  150. justifyContent: 'center'
  151. },
  152. reducedUIText: {
  153. color: TEXT_COLOR,
  154. fontSize: 12
  155. },
  156. /**
  157. * Container for room name input box and 'join' button.
  158. */
  159. roomContainer: {
  160. alignSelf: 'stretch',
  161. flexDirection: 'column'
  162. },
  163. /**
  164. * Container of the side bar.
  165. */
  166. sideBar: {
  167. width: 250
  168. },
  169. /**
  170. * The body of the side bar where the items are.
  171. */
  172. sideBarBody: {
  173. backgroundColor: ColorPalette.white,
  174. flex: 1
  175. },
  176. /**
  177. * The style of the side bar header.
  178. */
  179. sideBarHeader: {
  180. alignItems: 'center',
  181. flexDirection: 'column',
  182. height: SIDEBAR_HEADER_HEIGHT,
  183. justifyContent: 'center',
  184. padding: BoxModel.padding
  185. },
  186. /**
  187. * Style of the menu items in the side bar.
  188. */
  189. sideBarItem: {
  190. padding: 13
  191. },
  192. /**
  193. * The View inside the side bar buttons (icon + text).
  194. */
  195. sideBarItemButtonContainer: {
  196. alignItems: 'center',
  197. flexDirection: 'row',
  198. justifyContent: 'flex-start'
  199. },
  200. /**
  201. * The icon in the side bar item touchables.
  202. */
  203. sideBarItemIcon: {
  204. color: ColorPalette.blueHighlight,
  205. fontSize: 20,
  206. marginRight: 15
  207. },
  208. /**
  209. * The label of the side bar item touchables.
  210. */
  211. sideBarItemText: {
  212. color: ColorPalette.black,
  213. fontWeight: 'bold'
  214. },
  215. /**
  216. * The container of the label of the audio-video switch.
  217. */
  218. switchLabel: {
  219. paddingHorizontal: 3
  220. },
  221. /**
  222. * Room input style.
  223. */
  224. textInput: {
  225. backgroundColor: 'transparent',
  226. borderColor: ColorPalette.white,
  227. borderRadius: 4,
  228. borderWidth: 1,
  229. color: TEXT_COLOR,
  230. fontSize: 23,
  231. height: 50,
  232. padding: 4,
  233. textAlign: 'center'
  234. },
  235. /**
  236. * Application title style.
  237. */
  238. title: {
  239. color: TEXT_COLOR,
  240. fontSize: 25,
  241. marginBottom: 2 * BoxModel.margin,
  242. textAlign: 'center'
  243. },
  244. /**
  245. * The style of the top-level container of {@code WelcomePage}.
  246. */
  247. welcomePage: {
  248. backgroundColor: ColorPalette.blue,
  249. overflow: 'hidden'
  250. }
  251. };