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 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. flexDirection: 'column',
  11. flexGrow: 0
  12. };
  13. /**
  14. * The styles of the feature filmstrip common to both Web and native.
  15. */
  16. export default {
  17. /**
  18. * Dominant speaker indicator style.
  19. */
  20. dominantSpeakerIndicator: {
  21. color: ColorPalette.white,
  22. fontSize: 15
  23. },
  24. /**
  25. * Dominant speaker indicator background style.
  26. */
  27. dominantSpeakerIndicatorBackground: {
  28. backgroundColor: ColorPalette.blue,
  29. borderRadius: 15,
  30. left: 4,
  31. padding: 5,
  32. position: 'absolute',
  33. top: 4
  34. },
  35. /**
  36. * The style of the narrow {@link Filmstrip} version which displays
  37. * thumbnails in a row at the bottom of the screen.
  38. */
  39. filmstripNarrow: {
  40. ...filmstrip,
  41. alignItems: '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. left: 0,
  52. position: 'absolute',
  53. top: 0
  54. },
  55. /**
  56. * Moderator indicator style.
  57. */
  58. moderatorIndicator: {
  59. backgroundColor: 'transparent',
  60. bottom: 4,
  61. color: ColorPalette.white,
  62. position: 'absolute',
  63. right: 4
  64. },
  65. /**
  66. * The style of a participant's Thumbnail which renders either the video or
  67. * the avatar of the associated participant.
  68. */
  69. thumbnail: {
  70. alignItems: 'stretch',
  71. backgroundColor: ColorPalette.appBackground,
  72. borderColor: '#424242',
  73. borderRadius: 3,
  74. borderStyle: 'solid',
  75. borderWidth: 1,
  76. flex: 1,
  77. justifyContent: 'center',
  78. margin: 2,
  79. overflow: 'hidden',
  80. position: 'relative'
  81. },
  82. /**
  83. * The thumbnail audio and video muted indicator style.
  84. */
  85. thumbnailIndicator: {
  86. backgroundColor: 'transparent',
  87. color: ColorPalette.white,
  88. paddingLeft: 1,
  89. paddingRight: 1,
  90. position: 'relative'
  91. },
  92. /**
  93. * The thumbnails indicator container.
  94. */
  95. thumbnailIndicatorContainer: {
  96. alignSelf: 'stretch',
  97. bottom: 4,
  98. flex: 1,
  99. flexDirection: 'row',
  100. left: 4,
  101. position: 'absolute'
  102. },
  103. /**
  104. * Pinned video thumbnail style.
  105. */
  106. thumbnailPinned: {
  107. borderColor: ColorPalette.blue,
  108. shadowColor: ColorPalette.black,
  109. shadowOffset: {
  110. height: 5,
  111. width: 5
  112. },
  113. shadowRadius: 5
  114. }
  115. };