Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

styles.js 4.1KB

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