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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // @flow
  2. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  3. import { ColorPalette } from '../../../base/styles';
  4. import { FILMSTRIP_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. height: FILMSTRIP_SIZE
  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: 80,
  82. justifyContent: 'center',
  83. margin: 2,
  84. overflow: 'hidden',
  85. position: 'relative',
  86. width: 80
  87. },
  88. /**
  89. * The thumbnails indicator container.
  90. */
  91. thumbnailIndicatorContainer: {
  92. alignSelf: 'stretch',
  93. bottom: 4,
  94. flex: 1,
  95. flexDirection: 'row',
  96. left: 4,
  97. position: 'absolute'
  98. },
  99. thumbnailTopIndicatorContainer: {
  100. padding: 4,
  101. position: 'absolute',
  102. top: 0
  103. },
  104. thumbnailTopLeftIndicatorContainer: {
  105. left: 0
  106. },
  107. thumbnailTopRightIndicatorContainer: {
  108. right: 0
  109. },
  110. tileView: {
  111. alignSelf: 'center'
  112. },
  113. tileViewRows: {
  114. justifyContent: 'center'
  115. },
  116. tileViewRow: {
  117. flexDirection: 'row',
  118. justifyContent: 'center'
  119. }
  120. };
  121. /**
  122. * Color schemed styles for the @{code Thumbnail} component.
  123. */
  124. ColorSchemeRegistry.register('Thumbnail', {
  125. /**
  126. * Tinting style of the on-stage participant thumbnail.
  127. */
  128. activeThumbnailTint: {
  129. backgroundColor: schemeColor('activeParticipantTint')
  130. },
  131. /**
  132. * Coloring if the thumbnail background.
  133. */
  134. participantViewStyle: {
  135. backgroundColor: schemeColor('background')
  136. },
  137. /**
  138. * Pinned video thumbnail style.
  139. */
  140. thumbnailPinned: {
  141. borderColor: schemeColor('activeParticipantHighlight'),
  142. shadowColor: schemeColor('activeParticipantHighlight'),
  143. shadowOffset: {
  144. height: 5,
  145. width: 5
  146. },
  147. shadowRadius: 5
  148. }
  149. });