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

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