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

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