Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

styles.js 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. * The style of the display name label in the side bar.
  70. */
  71. displayName: {
  72. color: BaseTheme.palette.text01,
  73. fontSize: 16,
  74. marginTop: BoxModel.margin,
  75. textAlign: 'center'
  76. },
  77. enterRoomText: {
  78. color: TEXT_COLOR,
  79. fontSize: 18,
  80. marginBottom: BoxModel.margin
  81. },
  82. /**
  83. * Container for the button on the hint box.
  84. */
  85. hintButtonContainer: {
  86. flexDirection: 'row',
  87. justifyContent: 'center'
  88. },
  89. /**
  90. * Container for the hint box.
  91. */
  92. hintContainer: {
  93. flexDirection: 'column',
  94. overflow: 'hidden'
  95. },
  96. /**
  97. * The text of the hint box.
  98. */
  99. hintText: {
  100. textAlign: 'center'
  101. },
  102. /**
  103. * Container for the text on the hint box.
  104. */
  105. hintTextContainer: {
  106. marginBottom: 2 * BoxModel.margin
  107. },
  108. /**
  109. * Container for the items in the side bar.
  110. */
  111. itemContainer: {
  112. flexDirection: 'column',
  113. paddingTop: 10
  114. },
  115. /**
  116. * A view that contains the field and hint box.
  117. */
  118. joinControls: {
  119. padding: BoxModel.padding
  120. },
  121. messageContainer: {
  122. backgroundColor: BaseTheme.palette.ui12,
  123. borderColor: BaseTheme.palette.field02,
  124. borderRadius: 4,
  125. borderWidth: 1,
  126. marginVertical: 5,
  127. paddingHorizontal: BoxModel.padding,
  128. paddingVertical: 2 * BoxModel.padding
  129. },
  130. /**
  131. * Top-level screen style.
  132. */
  133. page: {
  134. flex: 1,
  135. flexDirection: 'column'
  136. },
  137. /**
  138. * The styles for reduced UI mode.
  139. */
  140. reducedUIContainer: {
  141. alignItems: 'center',
  142. backgroundColor: BaseTheme.palette.screen01Header,
  143. flex: 1,
  144. justifyContent: 'center'
  145. },
  146. reducedUIText: {
  147. color: TEXT_COLOR,
  148. fontSize: 12
  149. },
  150. /**
  151. * Container for room name input box and 'join' button.
  152. */
  153. roomContainer: {
  154. alignSelf: 'stretch',
  155. flexDirection: 'column'
  156. },
  157. /**
  158. * The style of the side bar header.
  159. */
  160. drawerHeader: {
  161. alignItems: 'center',
  162. backgroundColor: BaseTheme.palette.screen01Header,
  163. flexDirection: 'column',
  164. height: DRAWER_HEADER_HEIGHT,
  165. justifyContent: 'center'
  166. },
  167. drawerNavigationIcon: {
  168. height: BaseTheme.spacing[6],
  169. marginLeft: BaseTheme.spacing[1],
  170. marginTop: BaseTheme.spacing[1],
  171. width: BaseTheme.spacing[6]
  172. },
  173. /**
  174. * The container of the label of the audio-video switch.
  175. */
  176. switchLabel: {
  177. paddingHorizontal: 3
  178. },
  179. /**
  180. * Room input style.
  181. */
  182. textInput: {
  183. backgroundColor: 'transparent',
  184. borderColor: BaseTheme.palette.field02,
  185. borderRadius: 4,
  186. borderWidth: 1,
  187. color: TEXT_COLOR,
  188. fontSize: 23,
  189. height: 50,
  190. padding: 4,
  191. textAlign: 'center'
  192. },
  193. /**
  194. * Application title style.
  195. */
  196. title: {
  197. color: TEXT_COLOR,
  198. fontSize: 25,
  199. marginBottom: 2 * BoxModel.margin,
  200. textAlign: 'center'
  201. },
  202. insecureRoomNameWarningContainer: {
  203. alignItems: 'center',
  204. flexDirection: 'row',
  205. paddingHorizontal: 5
  206. },
  207. insecureRoomNameWarningIcon: {
  208. color: BaseTheme.palette.warning03,
  209. fontSize: 24,
  210. marginRight: 10
  211. },
  212. insecureRoomNameWarningText: {
  213. color: BaseTheme.palette.warning03,
  214. flex: 1
  215. },
  216. /**
  217. * The style of the top-level container of {@code WelcomePage}.
  218. */
  219. welcomePage: {
  220. backgroundColor: BaseTheme.palette.uiBackground,
  221. flex: 1,
  222. overflow: 'hidden'
  223. },
  224. recentList: {
  225. backgroundColor: BaseTheme.palette.uiBackground,
  226. flex: 1,
  227. overflow: 'hidden'
  228. },
  229. recentListDisabled: {
  230. backgroundColor: BaseTheme.palette.uiBackground,
  231. flex: 1,
  232. opacity: 0.8,
  233. overflow: 'hidden'
  234. },
  235. /**
  236. * Style for screen container.
  237. */
  238. screenContainer: {
  239. flex: 1
  240. }
  241. };