Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

styles.js 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  2. import { BoxModel, ColorPalette, fixAndroidViewClipping } from '../../../base/styles';
  3. import { FILMSTRIP_SIZE } from '../../../filmstrip';
  4. export const NAVBAR_GRADIENT_COLORS = [ '#000000FF', '#00000000' ];
  5. export const INSECURE_ROOM_NAME_LABEL_COLOR = ColorPalette.warning;
  6. // From brand guideline
  7. const BOTTOM_GRADIENT_HEIGHT = 290;
  8. const DEFAULT_GRADIENT_SIZE = 140;
  9. /**
  10. * The styles of the feature conference.
  11. */
  12. export default {
  13. bottomGradient: {
  14. bottom: 0,
  15. flexDirection: 'column',
  16. justifyContent: 'flex-end',
  17. minHeight: DEFAULT_GRADIENT_SIZE,
  18. left: 0,
  19. position: 'absolute',
  20. right: 0
  21. },
  22. /**
  23. * {@code Conference} style.
  24. */
  25. conference: fixAndroidViewClipping({
  26. alignSelf: 'stretch',
  27. backgroundColor: ColorPalette.appBackground,
  28. flex: 1
  29. }),
  30. displayNameContainer: {
  31. margin: 10
  32. },
  33. gradient: {
  34. position: 'absolute',
  35. top: 0,
  36. left: 0,
  37. right: 0,
  38. flex: 1
  39. },
  40. gradientStretchBottom: {
  41. height: BOTTOM_GRADIENT_HEIGHT
  42. },
  43. gradientStretchTop: {
  44. height: DEFAULT_GRADIENT_SIZE
  45. },
  46. /**
  47. * View that contains the indicators.
  48. */
  49. indicatorContainer: {
  50. flex: 1,
  51. flexDirection: 'row',
  52. justifyContent: 'flex-end',
  53. margin: BoxModel.margin
  54. },
  55. /**
  56. * Indicator container for wide aspect ratio.
  57. */
  58. indicatorContainerWide: {
  59. marginRight: FILMSTRIP_SIZE + BoxModel.margin
  60. },
  61. labelWrapper: {
  62. flexDirection: 'column',
  63. position: 'absolute',
  64. right: 0,
  65. top: 0
  66. },
  67. lonelyButton: {
  68. alignItems: 'center',
  69. borderRadius: 24,
  70. flexDirection: 'row',
  71. height: 48,
  72. justifyContent: 'space-around',
  73. paddingHorizontal: 12
  74. },
  75. lonelyButtonComponents: {
  76. marginHorizontal: 6
  77. },
  78. lonelyMeetingContainer: {
  79. alignSelf: 'stretch',
  80. alignItems: 'center',
  81. padding: BoxModel.padding * 2
  82. },
  83. lonelyMessage: {
  84. paddingVertical: 12
  85. },
  86. navBarButton: {
  87. iconStyle: {
  88. color: ColorPalette.white,
  89. fontSize: 24
  90. },
  91. underlayColor: 'transparent'
  92. },
  93. navBarContainer: {
  94. flexDirection: 'column',
  95. left: 0,
  96. position: 'absolute',
  97. right: 0,
  98. top: 0
  99. },
  100. navBarSafeView: {
  101. left: 0,
  102. position: 'absolute',
  103. right: 0,
  104. top: 0
  105. },
  106. navBarWrapper: {
  107. alignItems: 'center',
  108. flex: 1,
  109. flexDirection: 'row',
  110. height: 44,
  111. justifyContent: 'space-between',
  112. paddingHorizontal: 14
  113. },
  114. roomTimer: {
  115. color: ColorPalette.white,
  116. fontSize: 15,
  117. opacity: 0.6
  118. },
  119. roomName: {
  120. color: ColorPalette.white,
  121. fontSize: 17,
  122. fontWeight: '400'
  123. },
  124. roomNameWrapper: {
  125. flexDirection: 'column',
  126. alignItems: 'center',
  127. left: 0,
  128. paddingHorizontal: 48,
  129. position: 'absolute',
  130. right: 0
  131. },
  132. /**
  133. * The style of the {@link View} which expands over the whole
  134. * {@link Conference} area and splits it between the {@link Filmstrip} and
  135. * the {@link Toolbox}.
  136. */
  137. toolboxAndFilmstripContainer: {
  138. bottom: 0,
  139. flexDirection: 'column',
  140. justifyContent: 'flex-end',
  141. left: 0,
  142. paddingBottom: BoxModel.padding,
  143. position: 'absolute',
  144. right: 0,
  145. // Both on Android and iOS there is the status bar which may be visible.
  146. // On iPhone X there is the notch. In the two cases BoxModel.margin is
  147. // not enough.
  148. top: BoxModel.margin * 3
  149. },
  150. insecureRoomNameLabel: {
  151. backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR
  152. }
  153. };
  154. ColorSchemeRegistry.register('Conference', {
  155. lonelyButton: {
  156. backgroundColor: schemeColor('inviteButtonBackground')
  157. },
  158. lonelyMessage: {
  159. color: schemeColor('onVideoText')
  160. }
  161. });