Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. * The style of the top-level container/{@code View} of
  132. * {@code LocalVideoTrackUnderlay}.
  133. */
  134. localVideoTrackUnderlay: {
  135. alignSelf: 'stretch',
  136. backgroundColor: 'transparent',
  137. flex: 1
  138. },
  139. /**
  140. * Top-level screen style.
  141. */
  142. page: {
  143. flex: 1,
  144. flexDirection: 'column'
  145. },
  146. /**
  147. * The styles for reduced UI mode.
  148. */
  149. reducedUIContainer: {
  150. alignItems: 'center',
  151. backgroundColor: BaseTheme.palette.screen01Header,
  152. flex: 1,
  153. justifyContent: 'center'
  154. },
  155. reducedUIText: {
  156. color: TEXT_COLOR,
  157. fontSize: 12
  158. },
  159. /**
  160. * Container for room name input box and 'join' button.
  161. */
  162. roomContainer: {
  163. alignSelf: 'stretch',
  164. flexDirection: 'column'
  165. },
  166. /**
  167. * The style of the side bar header.
  168. */
  169. drawerHeader: {
  170. alignItems: 'center',
  171. backgroundColor: BaseTheme.palette.screen01Header,
  172. flexDirection: 'column',
  173. height: DRAWER_HEADER_HEIGHT,
  174. justifyContent: 'center'
  175. },
  176. drawerNavigationIcon: {
  177. height: BaseTheme.spacing[6],
  178. marginLeft: BaseTheme.spacing[1],
  179. marginTop: BaseTheme.spacing[1],
  180. width: BaseTheme.spacing[6]
  181. },
  182. /**
  183. * The container of the label of the audio-video switch.
  184. */
  185. switchLabel: {
  186. paddingHorizontal: 3
  187. },
  188. /**
  189. * Room input style.
  190. */
  191. textInput: {
  192. backgroundColor: 'transparent',
  193. borderColor: BaseTheme.palette.field02,
  194. borderRadius: 4,
  195. borderWidth: 1,
  196. color: TEXT_COLOR,
  197. fontSize: 23,
  198. height: 50,
  199. padding: 4,
  200. textAlign: 'center'
  201. },
  202. /**
  203. * Application title style.
  204. */
  205. title: {
  206. color: TEXT_COLOR,
  207. fontSize: 25,
  208. marginBottom: 2 * BoxModel.margin,
  209. textAlign: 'center'
  210. },
  211. insecureRoomNameWarningContainer: {
  212. alignItems: 'center',
  213. flexDirection: 'row',
  214. paddingHorizontal: 5
  215. },
  216. insecureRoomNameWarningIcon: {
  217. color: BaseTheme.palette.warning03,
  218. fontSize: 24,
  219. marginRight: 10
  220. },
  221. insecureRoomNameWarningText: {
  222. color: BaseTheme.palette.warning03,
  223. flex: 1
  224. },
  225. /**
  226. * The style of the top-level container of {@code WelcomePage}.
  227. */
  228. welcomePage: {
  229. backgroundColor: BaseTheme.palette.uiBackground,
  230. flex: 1,
  231. overflow: 'hidden'
  232. },
  233. recentList: {
  234. backgroundColor: BaseTheme.palette.uiBackground,
  235. flex: 1,
  236. overflow: 'hidden'
  237. },
  238. recentListDisabled: {
  239. backgroundColor: BaseTheme.palette.uiBackground,
  240. flex: 1,
  241. opacity: 0.8,
  242. overflow: 'hidden'
  243. }
  244. };