Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. // @flow
  2. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  3. import { ColorPalette } from '../../../base/styles';
  4. import { SMALL_THUMBNAIL_SIZE } from '../../constants';
  5. /**
  6. * Size for the Avatar.
  7. */
  8. export const AVATAR_SIZE = 50;
  9. /**
  10. * The styles of the feature filmstrip.
  11. */
  12. export default {
  13. /**
  14. * The display name container.
  15. */
  16. displayNameContainer: {
  17. alignSelf: 'center',
  18. bottom: 0,
  19. flex: 1,
  20. margin: 4,
  21. position: 'absolute'
  22. },
  23. /**
  24. * The style of the narrow {@link Filmstrip} version which displays
  25. * thumbnails in a row at the bottom of the screen.
  26. */
  27. filmstripNarrow: {
  28. flexDirection: 'row',
  29. flexGrow: 0,
  30. justifyContent: 'flex-end',
  31. marginBottom: 5
  32. },
  33. /**
  34. * The style of the wide {@link Filmstrip} version which displays thumbnails
  35. * in a column on the short size of the screen.
  36. *
  37. * NOTE: width is calculated based on the children, but it should also align
  38. * to {@code FILMSTRIP_SIZE}.
  39. */
  40. filmstripWide: {
  41. bottom: 0,
  42. flexDirection: 'column',
  43. flexGrow: 0,
  44. position: 'absolute',
  45. right: 0,
  46. top: 0
  47. },
  48. /**
  49. * Container of the {@link LocalThumbnail}.
  50. */
  51. localThumbnail: {
  52. alignContent: 'stretch',
  53. alignSelf: 'stretch',
  54. aspectRatio: 1,
  55. flexShrink: 0,
  56. flexDirection: 'row'
  57. },
  58. moderatorIndicatorContainer: {
  59. bottom: 4,
  60. position: 'absolute',
  61. right: 4
  62. },
  63. /**
  64. * The style of the scrollview containing the remote thumbnails.
  65. */
  66. scrollView: {
  67. flexGrow: 0
  68. },
  69. /**
  70. * The style of a participant's Thumbnail which renders either the video or
  71. * the avatar of the associated participant.
  72. */
  73. thumbnail: {
  74. alignItems: 'stretch',
  75. backgroundColor: ColorPalette.appBackground,
  76. borderColor: '#424242',
  77. borderRadius: 3,
  78. borderStyle: 'solid',
  79. borderWidth: 1,
  80. flex: 1,
  81. height: SMALL_THUMBNAIL_SIZE,
  82. justifyContent: 'center',
  83. margin: 2,
  84. maxHeight: SMALL_THUMBNAIL_SIZE,
  85. maxWidth: SMALL_THUMBNAIL_SIZE,
  86. overflow: 'hidden',
  87. position: 'relative',
  88. width: SMALL_THUMBNAIL_SIZE
  89. },
  90. /**
  91. * The thumbnails indicator container.
  92. */
  93. thumbnailIndicatorContainer: {
  94. alignSelf: 'stretch',
  95. bottom: 4,
  96. flex: 1,
  97. flexDirection: 'row',
  98. left: 4,
  99. position: 'absolute'
  100. },
  101. thumbnailTopIndicatorContainer: {
  102. padding: 4,
  103. position: 'absolute',
  104. top: 0
  105. },
  106. thumbnailTopLeftIndicatorContainer: {
  107. left: 0
  108. },
  109. thumbnailTopRightIndicatorContainer: {
  110. right: 0
  111. },
  112. tileView: {
  113. alignSelf: 'center'
  114. },
  115. tileViewRows: {
  116. justifyContent: 'center'
  117. },
  118. tileViewRow: {
  119. flexDirection: 'row',
  120. justifyContent: 'center'
  121. }
  122. };
  123. /**
  124. * Color schemed styles for the @{code Thumbnail} component.
  125. */
  126. ColorSchemeRegistry.register('Thumbnail', {
  127. /**
  128. * Tinting style of the on-stage participant thumbnail.
  129. */
  130. activeThumbnailTint: {
  131. backgroundColor: schemeColor('activeParticipantTint')
  132. },
  133. /**
  134. * Coloring if the thumbnail background.
  135. */
  136. participantViewStyle: {
  137. backgroundColor: schemeColor('background')
  138. },
  139. /**
  140. * Pinned video thumbnail style.
  141. */
  142. thumbnailPinned: {
  143. borderColor: schemeColor('activeParticipantHighlight'),
  144. shadowColor: schemeColor('activeParticipantHighlight'),
  145. shadowOffset: {
  146. height: 5,
  147. width: 5
  148. },
  149. shadowRadius: 5
  150. }
  151. });