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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import { ColorPalette } from '../../base/styles';
  2. /**
  3. * Size for the Avatar.
  4. */
  5. export const AVATAR_SIZE = 50;
  6. /**
  7. * The base style of {@link Filmstrip} shared between narrow and wide versions.
  8. */
  9. const filmstrip = {
  10. flexGrow: 0
  11. };
  12. /**
  13. * The styles of the feature filmstrip common to both Web and native.
  14. */
  15. export default {
  16. /**
  17. * Dominant speaker indicator style.
  18. */
  19. dominantSpeakerIndicator: {
  20. color: ColorPalette.white,
  21. fontSize: 15
  22. },
  23. /**
  24. * Dominant speaker indicator background style.
  25. */
  26. dominantSpeakerIndicatorBackground: {
  27. backgroundColor: ColorPalette.blue,
  28. borderRadius: 15,
  29. left: 4,
  30. padding: 5,
  31. position: 'absolute',
  32. top: 4
  33. },
  34. /**
  35. * The style of the narrow {@link Filmstrip} version which displays
  36. * thumbnails in a row at the bottom of the screen.
  37. */
  38. filmstripNarrow: {
  39. ...filmstrip,
  40. flexDirection: 'row',
  41. justifyContent: 'flex-end',
  42. height: 90
  43. },
  44. /**
  45. * The style of the wide {@link Filmstrip} version which displays thumbnails
  46. * in a column on the short size of the screen.
  47. */
  48. filmstripWide: {
  49. ...filmstrip,
  50. bottom: 0,
  51. flexDirection: 'column',
  52. position: 'absolute',
  53. right: 0,
  54. top: 0
  55. },
  56. /**
  57. * Container of the {@link LocalThumbnail}.
  58. */
  59. localThumbnail: {
  60. alignContent: 'stretch',
  61. alignSelf: 'stretch',
  62. aspectRatio: 1,
  63. flexShrink: 0,
  64. flexDirection: 'row'
  65. },
  66. /**
  67. * Moderator indicator style.
  68. */
  69. moderatorIndicator: {
  70. backgroundColor: 'transparent',
  71. bottom: 4,
  72. color: ColorPalette.white,
  73. position: 'absolute',
  74. right: 4
  75. },
  76. /**
  77. * The style of the scrollview containing the remote thumbnails.
  78. */
  79. scrollView: {
  80. flexGrow: 0
  81. },
  82. /**
  83. * The style of a participant's Thumbnail which renders either the video or
  84. * the avatar of the associated participant.
  85. */
  86. thumbnail: {
  87. alignItems: 'stretch',
  88. backgroundColor: ColorPalette.appBackground,
  89. borderColor: '#424242',
  90. borderRadius: 3,
  91. borderStyle: 'solid',
  92. borderWidth: 1,
  93. flex: 1,
  94. justifyContent: 'center',
  95. margin: 2,
  96. overflow: 'hidden',
  97. position: 'relative'
  98. },
  99. /**
  100. * The thumbnail audio and video muted indicator style.
  101. */
  102. thumbnailIndicator: {
  103. backgroundColor: 'transparent',
  104. color: ColorPalette.white,
  105. paddingLeft: 1,
  106. paddingRight: 1,
  107. position: 'relative'
  108. },
  109. /**
  110. * The thumbnails indicator container.
  111. */
  112. thumbnailIndicatorContainer: {
  113. alignSelf: 'stretch',
  114. bottom: 4,
  115. flex: 1,
  116. flexDirection: 'row',
  117. left: 4,
  118. position: 'absolute'
  119. },
  120. /**
  121. * Pinned video thumbnail style.
  122. */
  123. thumbnailPinned: {
  124. borderColor: ColorPalette.blue,
  125. shadowColor: ColorPalette.black,
  126. shadowOffset: {
  127. height: 5,
  128. width: 5
  129. },
  130. shadowRadius: 5
  131. }
  132. };