Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

styles.js 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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. pageIndicator: {
  144. alignItems: 'center',
  145. flex: 1,
  146. flexDirection: 'column',
  147. justifyContent: 'center'
  148. },
  149. pageIndicatorContainer: {
  150. alignItems: 'stretch',
  151. backgroundColor: ColorPalette.blue,
  152. flexDirection: 'row',
  153. height: 56,
  154. justifyContent: 'center'
  155. },
  156. pageIndicatorIcon: {
  157. color: ColorPalette.blueHighlight,
  158. fontSize: 24
  159. },
  160. pageIndicatorText: {
  161. color: ColorPalette.blueHighlight
  162. },
  163. pageIndicatorTextActive: {
  164. color: ColorPalette.white
  165. },
  166. /**
  167. * Top level style of the paged list.
  168. */
  169. pagedList: {
  170. flex: 1
  171. },
  172. pagedListContainer: {
  173. flex: 1,
  174. flexDirection: 'column'
  175. },
  176. /**
  177. * Disabled style for the container.
  178. */
  179. pagedListContainerDisabled: {
  180. opacity: 0.2
  181. },
  182. /**
  183. * Container for room name input box and 'join' button.
  184. */
  185. roomContainer: {
  186. alignSelf: 'stretch',
  187. flexDirection: 'column'
  188. },
  189. /**
  190. * The body of the side bar where the items are.
  191. */
  192. sideBarBody: {
  193. backgroundColor: ColorPalette.white,
  194. flex: 1
  195. },
  196. /**
  197. * The style of the side bar header.
  198. */
  199. sideBarHeader: {
  200. alignItems: 'center',
  201. flexDirection: 'column',
  202. height: SIDEBAR_HEADER_HEIGHT,
  203. justifyContent: 'center',
  204. padding: BoxModel.padding
  205. },
  206. /**
  207. * Style of the menu items in the side bar.
  208. */
  209. sideBarItem: {
  210. padding: 13
  211. },
  212. /**
  213. * The View inside the side bar buttons (icon + text).
  214. */
  215. sideBarItemButtonContainer: {
  216. alignItems: 'center',
  217. flexDirection: 'row',
  218. justifyContent: 'flex-start'
  219. },
  220. /**
  221. * The icon in the side bar item touchables.
  222. */
  223. sideBarItemIcon: {
  224. color: ColorPalette.blueHighlight,
  225. fontSize: 20,
  226. marginRight: 15
  227. },
  228. /**
  229. * The label of the side bar item touchables.
  230. */
  231. sideBarItemText: {
  232. color: ColorPalette.black,
  233. fontWeight: 'bold'
  234. },
  235. /**
  236. * Room input style.
  237. */
  238. textInput: {
  239. backgroundColor: 'transparent',
  240. borderColor: ColorPalette.white,
  241. borderRadius: 4,
  242. borderWidth: 1,
  243. color: TEXT_COLOR,
  244. fontSize: 23,
  245. height: 50,
  246. padding: 4,
  247. textAlign: 'center'
  248. },
  249. /**
  250. * Application title style.
  251. */
  252. title: {
  253. color: TEXT_COLOR,
  254. fontSize: 25,
  255. marginBottom: 2 * BoxModel.margin,
  256. textAlign: 'center'
  257. },
  258. /**
  259. * The style of the top-level container of {@code WelcomePage}.
  260. */
  261. welcomePage: {
  262. backgroundColor: ColorPalette.blue,
  263. overflow: 'hidden'
  264. }
  265. });