您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet,
  5. fixAndroidViewClipping
  6. } from '../../base/styles';
  7. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
  8. /**
  9. * The default color of text on the WelcomePage.
  10. */
  11. const TEXT_COLOR = ColorPalette.white;
  12. /**
  13. * The styles of the React {@code Components} of the feature welcome including
  14. * {@code WelcomePage} and {@code BlankPage}.
  15. */
  16. export default createStyleSheet({
  17. /**
  18. * The style of the top-level container of {@code BlankPage}.
  19. */
  20. blankPage: {
  21. },
  22. /**
  23. * Join button style.
  24. */
  25. button: {
  26. backgroundColor: ColorPalette.white,
  27. borderColor: ColorPalette.white,
  28. borderRadius: 8,
  29. borderWidth: 1,
  30. height: 45,
  31. justifyContent: 'center',
  32. marginBottom: BoxModel.margin,
  33. marginTop: BoxModel.margin
  34. },
  35. /**
  36. * Layout of the button container.
  37. */
  38. buttonRow: {
  39. flexDirection: 'row'
  40. },
  41. /**
  42. * Join button text style.
  43. */
  44. buttonText: {
  45. alignSelf: 'center',
  46. color: ColorPalette.blue,
  47. fontSize: 18
  48. },
  49. /**
  50. * Style of the join button.
  51. */
  52. joinButton: {
  53. flex: 1
  54. },
  55. /**
  56. * The style of the legal-related content such as (hyper)links to Privacy
  57. * Policy and Terms of Service displayed on the WelcomePage.
  58. */
  59. legaleseContainer: {
  60. alignItems: 'center',
  61. flex: 0,
  62. flexDirection: 'row',
  63. justifyContent: 'center',
  64. // XXX Lift the legaleseContainer up above the iPhone X home indicator;
  65. // otherwise, the former is partially underneath the latter.
  66. marginBottom: BoxModel.margin
  67. },
  68. /**
  69. * The style of a piece of legal-related content such as a (hyper)link to
  70. * Privacy Policy or Terms of Service displayed on the WelcomePage.
  71. */
  72. legaleseItem: {
  73. // XXX The backgroundColor must be transparent; otherwise, the
  74. // backgroundColor of a parent may show through. Moreover, the
  75. // legaleseItem is not really expected to have a background of its own.
  76. backgroundColor: 'transparent',
  77. color: TEXT_COLOR,
  78. fontSize: 12,
  79. margin: BoxModel.margin
  80. },
  81. /**
  82. * The style of the top-level container/{@code View} of
  83. * {@code LocalVideoTrackUnderlay}.
  84. */
  85. localVideoTrackUnderlay: fixAndroidViewClipping({
  86. alignSelf: 'stretch',
  87. backgroundColor: 'transparent',
  88. flex: 1
  89. }),
  90. /**
  91. * Container for room name input box and 'join' button.
  92. */
  93. roomContainer: {
  94. alignSelf: 'stretch',
  95. flex: 1,
  96. flexDirection: 'column',
  97. // XXX RecentList will eventually push the room name TextInput and the
  98. // Join button up from the center. I don't like that movement from
  99. // center to top, especially without an animation. Just start with the
  100. // room name TextInput and the Join button at the top.
  101. justifyContent: 'flex-start',
  102. margin: 3 * BoxModel.margin,
  103. // XXX Be consistent with the marginBottom of legaleseContainer!
  104. marginBottom: BoxModel.margin,
  105. // XXX Push the roomContainer down bellow the iPhone X notchl otherwise,
  106. // the former seems glued to the latter. THe amount of visual margin at
  107. // the top is pretty much as the visual margin at the bottom (if you sum
  108. // all bottom and top margins and account for legaleseItem) which brings
  109. // symmetry as well.
  110. marginTop: 5 * BoxModel.margin
  111. },
  112. /**
  113. * Style of the settings button.
  114. */
  115. settingsButton: {
  116. width: 65,
  117. marginRight: BoxModel.margin
  118. },
  119. /**
  120. * Style of the settings icon on the settings button.
  121. */
  122. settingsIcon: {
  123. fontSize: 24,
  124. alignSelf: 'center'
  125. },
  126. /**
  127. * Room input style.
  128. */
  129. textInput: {
  130. backgroundColor: 'transparent',
  131. borderColor: ColorPalette.white,
  132. borderRadius: 8,
  133. borderWidth: 1,
  134. color: TEXT_COLOR,
  135. fontSize: 23,
  136. height: 50,
  137. padding: 4,
  138. textAlign: 'center'
  139. },
  140. /**
  141. * Application title style.
  142. */
  143. title: {
  144. color: TEXT_COLOR,
  145. fontSize: 25,
  146. marginBottom: 2 * BoxModel.margin,
  147. textAlign: 'center'
  148. },
  149. /**
  150. * The style of the top-level container of {@code WelcomePage}.
  151. */
  152. welcomePage: {
  153. backgroundColor: ColorPalette.blue
  154. }
  155. });