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 4.9KB

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