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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. // @flow
  2. import { StyleSheet } from 'react-native';
  3. import { BoxModel } from '../../base/styles';
  4. import BaseTheme from '../../base/ui/components/BaseTheme.native';
  5. export const PLACEHOLDER_TEXT_COLOR = BaseTheme.palette.text01;
  6. export const DRAWER_AVATAR_SIZE = 104;
  7. const DRAWER_HEADER_HEIGHT = 220;
  8. export const SWITCH_THUMB_COLOR = BaseTheme.palette.action04;
  9. export const SWITCH_UNDER_COLOR = BaseTheme.palette.video01Disabled;
  10. /**
  11. * The default color of text on the WelcomePage.
  12. */
  13. const TEXT_COLOR = BaseTheme.palette.text01;
  14. /**
  15. * The styles of the React {@code Components} of the feature welcome including
  16. * {@code WelcomePage} and {@code BlankPage}.
  17. */
  18. export default {
  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. alignItems: 'center',
  30. flexDirection: 'row',
  31. marginRight: BaseTheme.spacing[2]
  32. },
  33. blankPageText: {
  34. color: TEXT_COLOR,
  35. fontSize: 18
  36. },
  37. /**
  38. * View that is rendered when there is no welcome page.
  39. */
  40. blankPageWrapper: {
  41. ...StyleSheet.absoluteFillObject,
  42. alignItems: 'center',
  43. backgroundColor: BaseTheme.palette.uiBackground,
  44. flex: 1,
  45. flexDirection: 'column',
  46. justifyContent: 'center'
  47. },
  48. /**
  49. * Join button style.
  50. */
  51. button: {
  52. backgroundColor: BaseTheme.palette.screen01Header,
  53. borderColor: BaseTheme.palette.screen01Header,
  54. borderRadius: 4,
  55. borderWidth: 1,
  56. height: 30,
  57. justifyContent: 'center',
  58. paddingHorizontal: 20
  59. },
  60. /**
  61. * Join button text style.
  62. */
  63. buttonText: {
  64. alignSelf: 'center',
  65. color: BaseTheme.palette.text01,
  66. fontSize: 14
  67. },
  68. /**
  69. * Drawer style.
  70. */
  71. drawerStyle: {
  72. backgroundColor: BaseTheme.palette.ui12,
  73. width: '54%'
  74. },
  75. /**
  76. * The style of the display name label in the side bar.
  77. */
  78. displayName: {
  79. color: BaseTheme.palette.text01,
  80. fontSize: 16,
  81. marginTop: BoxModel.margin,
  82. textAlign: 'center'
  83. },
  84. enterRoomText: {
  85. color: TEXT_COLOR,
  86. fontSize: 18,
  87. marginBottom: BoxModel.margin
  88. },
  89. /**
  90. * Container for the button on the hint box.
  91. */
  92. hintButtonContainer: {
  93. flexDirection: 'row',
  94. justifyContent: 'center'
  95. },
  96. /**
  97. * Container for the hint box.
  98. */
  99. hintContainer: {
  100. flexDirection: 'column',
  101. overflow: 'hidden'
  102. },
  103. /**
  104. * The text of the hint box.
  105. */
  106. hintText: {
  107. textAlign: 'center'
  108. },
  109. /**
  110. * Container for the text on the hint box.
  111. */
  112. hintTextContainer: {
  113. marginBottom: 2 * BoxModel.margin
  114. },
  115. /**
  116. * Container for the items in the side bar.
  117. */
  118. itemContainer: {
  119. flexDirection: 'column',
  120. paddingTop: 10
  121. },
  122. /**
  123. * A view that contains the field and hint box.
  124. */
  125. joinControls: {
  126. padding: BoxModel.padding
  127. },
  128. messageContainer: {
  129. backgroundColor: BaseTheme.palette.ui12,
  130. borderColor: BaseTheme.palette.field02,
  131. borderRadius: 4,
  132. borderWidth: 1,
  133. marginVertical: 5,
  134. paddingHorizontal: BoxModel.padding,
  135. paddingVertical: 2 * BoxModel.padding
  136. },
  137. /**
  138. * The style of the top-level container/{@code View} of
  139. * {@code LocalVideoTrackUnderlay}.
  140. */
  141. localVideoTrackUnderlay: {
  142. alignSelf: 'stretch',
  143. backgroundColor: 'transparent',
  144. flex: 1
  145. },
  146. /**
  147. * Top-level screen style.
  148. */
  149. page: {
  150. flex: 1,
  151. flexDirection: 'column'
  152. },
  153. /**
  154. * The styles for reduced UI mode.
  155. */
  156. reducedUIContainer: {
  157. alignItems: 'center',
  158. backgroundColor: BaseTheme.palette.screen01Header,
  159. flex: 1,
  160. justifyContent: 'center'
  161. },
  162. reducedUIText: {
  163. color: TEXT_COLOR,
  164. fontSize: 12
  165. },
  166. /**
  167. * Container for room name input box and 'join' button.
  168. */
  169. roomContainer: {
  170. alignSelf: 'stretch',
  171. flexDirection: 'column'
  172. },
  173. /**
  174. * The style of the side bar header.
  175. */
  176. drawerHeader: {
  177. alignItems: 'center',
  178. backgroundColor: BaseTheme.palette.screen01Header,
  179. flexDirection: 'column',
  180. height: DRAWER_HEADER_HEIGHT,
  181. justifyContent: 'center'
  182. },
  183. drawerNavigationIcon: {
  184. height: BaseTheme.spacing[6],
  185. marginLeft: BaseTheme.spacing[1],
  186. marginTop: BaseTheme.spacing[1],
  187. width: BaseTheme.spacing[6]
  188. },
  189. /**
  190. * The container of the label of the audio-video switch.
  191. */
  192. switchLabel: {
  193. paddingHorizontal: 3
  194. },
  195. /**
  196. * Room input style.
  197. */
  198. textInput: {
  199. backgroundColor: 'transparent',
  200. borderColor: BaseTheme.palette.field02,
  201. borderRadius: 4,
  202. borderWidth: 1,
  203. color: TEXT_COLOR,
  204. fontSize: 23,
  205. height: 50,
  206. padding: 4,
  207. textAlign: 'center'
  208. },
  209. /**
  210. * Application title style.
  211. */
  212. title: {
  213. color: TEXT_COLOR,
  214. fontSize: 25,
  215. marginBottom: 2 * BoxModel.margin,
  216. textAlign: 'center'
  217. },
  218. insecureRoomNameWarningContainer: {
  219. alignItems: 'center',
  220. flexDirection: 'row',
  221. paddingHorizontal: 5
  222. },
  223. insecureRoomNameWarningIcon: {
  224. color: BaseTheme.palette.warning03,
  225. fontSize: 24,
  226. marginRight: 10
  227. },
  228. insecureRoomNameWarningText: {
  229. color: BaseTheme.palette.warning03,
  230. flex: 1
  231. },
  232. /**
  233. * The style of the top-level container of {@code WelcomePage}.
  234. */
  235. welcomePage: {
  236. backgroundColor: BaseTheme.palette.uiBackground,
  237. flex: 1,
  238. overflow: 'hidden'
  239. },
  240. recentList: {
  241. backgroundColor: BaseTheme.palette.uiBackground,
  242. flex: 1,
  243. overflow: 'hidden'
  244. },
  245. recentListDisabled: {
  246. backgroundColor: BaseTheme.palette.uiBackground,
  247. flex: 1,
  248. opacity: 0.8,
  249. overflow: 'hidden'
  250. }
  251. };