Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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