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

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