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

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