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

styles.js 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The default color of text on the WelcomePage.
  4. */
  5. const TEXT_COLOR = ColorPalette.white;
  6. /**
  7. * The styles of WelcomePage.
  8. */
  9. export const styles = createStyleSheet({
  10. /**
  11. * Join button style.
  12. */
  13. button: {
  14. backgroundColor: ColorPalette.white,
  15. borderColor: ColorPalette.white,
  16. borderRadius: 8,
  17. borderWidth: 1,
  18. height: 45,
  19. justifyContent: 'center',
  20. marginBottom: BoxModel.margin,
  21. marginTop: BoxModel.margin
  22. },
  23. /**
  24. * Join button text style.
  25. */
  26. buttonText: {
  27. alignSelf: 'center',
  28. color: '#00ccff',
  29. fontSize: 18
  30. },
  31. /**
  32. * The style of the top-level container of WelcomePage.
  33. */
  34. container: {
  35. alignSelf: 'stretch',
  36. backgroundColor: ColorPalette.blue,
  37. // XXX These properties are a workaround for Android views clipping,
  38. // RN doesn't properly blit our overlays on top of video views.
  39. borderColor: ColorPalette.appBackground,
  40. borderWidth: 0.2,
  41. flex: 1
  42. },
  43. /**
  44. * The style of the legal-related content such as (hyper)links to Privacy
  45. * Policy and Terms of Service displayed on the WelcomePage.
  46. */
  47. legaleseContainer: {
  48. alignItems: 'center',
  49. flex: 0,
  50. flexDirection: 'row',
  51. justifyContent: 'center'
  52. },
  53. /**
  54. * The style of a piece of legal-related content such as a (hyper)link to
  55. * Privacy Policy or Terms of Service displayed on the WelcomePage.
  56. */
  57. legaleseItem: {
  58. color: TEXT_COLOR,
  59. fontSize: 12,
  60. margin: BoxModel.margin
  61. },
  62. /**
  63. * The style of the View displayed over the local video. The latter is
  64. * thought of as the background (content) of WelcomePage. The former is
  65. * thought of as the foreground (content) of WelcomePage.
  66. */
  67. localVideoOverlay: {
  68. // Since (1) the top-level container of WelcomePage is not transparent
  69. // and, more importantly, (2) this View is displayed over the local
  70. // video, this View would better not have a background color.
  71. // Otherwise, Views within this View will inherit its background color
  72. // and Text, for example, will display non-transparent rectangles over
  73. // the local video.
  74. backgroundColor: 'transparent',
  75. bottom: 0,
  76. flex: 1,
  77. flexDirection: 'column',
  78. left: 0,
  79. position: 'absolute',
  80. right: 0,
  81. top: 0
  82. },
  83. /**
  84. * Container for room name input box and 'join' button.
  85. */
  86. roomContainer: {
  87. flex: 1,
  88. flexDirection: 'column',
  89. justifyContent: 'center',
  90. margin: 3 * BoxModel.margin
  91. },
  92. /**
  93. * Room input style.
  94. */
  95. textInput: {
  96. backgroundColor: 'transparent',
  97. borderColor: ColorPalette.white,
  98. borderRadius: 8,
  99. borderWidth: 1,
  100. color: TEXT_COLOR,
  101. fontSize: 23,
  102. height: 50,
  103. padding: 4,
  104. textAlign: 'center'
  105. },
  106. /**
  107. * Application title style.
  108. */
  109. title: {
  110. color: TEXT_COLOR,
  111. fontSize: 25,
  112. marginBottom: 2 * BoxModel.margin,
  113. textAlign: 'center'
  114. }
  115. });