選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

styles.native.ts 4.9KB

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