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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. import { Platform } from '../../base/react';
  2. import { ColorPalette } from '../../base/styles';
  3. /**
  4. * The base style of {@link Filmstrip} shared between narrow and wide versions.
  5. */
  6. const filmstrip = {
  7. flexDirection: 'column',
  8. flexGrow: 0
  9. };
  10. /**
  11. * The styles of the feature filmstrip common to both Web and native.
  12. */
  13. export default {
  14. /**
  15. * Avatar style.
  16. */
  17. avatar: {
  18. alignSelf: 'center',
  19. // XXX Workaround for Android: for images < 80 the border radius doesn't
  20. // work properly, but applying a radius twice as big does the trick.
  21. borderRadius: Platform.OS === 'android' ? 100 : 25,
  22. flex: 0,
  23. height: 50,
  24. width: 50
  25. },
  26. /**
  27. * Dominant speaker indicator style.
  28. */
  29. dominantSpeakerIndicator: {
  30. color: ColorPalette.white,
  31. fontSize: 15
  32. },
  33. /**
  34. * Dominant speaker indicator background style.
  35. */
  36. dominantSpeakerIndicatorBackground: {
  37. backgroundColor: ColorPalette.blue,
  38. borderRadius: 15,
  39. left: 4,
  40. padding: 5,
  41. position: 'absolute',
  42. top: 4
  43. },
  44. /**
  45. * The style of the narrow {@link Filmstrip} version which displays
  46. * thumbnails in a row at the bottom of the screen.
  47. */
  48. filmstripNarrow: {
  49. ...filmstrip,
  50. alignItems: 'flex-end',
  51. height: 90
  52. },
  53. /**
  54. * The style of the wide {@link Filmstrip} version which displays thumbnails
  55. * in a column on the short size of the screen.
  56. */
  57. filmstripWide: {
  58. ...filmstrip,
  59. bottom: 0,
  60. left: 0,
  61. position: 'absolute',
  62. top: 0
  63. },
  64. /**
  65. * Moderator indicator style.
  66. */
  67. moderatorIndicator: {
  68. backgroundColor: 'transparent',
  69. bottom: 4,
  70. color: ColorPalette.white,
  71. position: 'absolute',
  72. right: 4
  73. },
  74. /**
  75. * The style of a participant's Thumbnail which renders either the video or
  76. * the avatar of the associated participant.
  77. */
  78. thumbnail: {
  79. alignItems: 'stretch',
  80. backgroundColor: ColorPalette.appBackground,
  81. borderColor: '#424242',
  82. borderRadius: 3,
  83. borderStyle: 'solid',
  84. borderWidth: 1,
  85. flex: 1,
  86. justifyContent: 'center',
  87. margin: 2,
  88. overflow: 'hidden',
  89. position: 'relative'
  90. },
  91. /**
  92. * The thumbnail audio and video muted indicator style.
  93. */
  94. thumbnailIndicator: {
  95. backgroundColor: 'transparent',
  96. color: ColorPalette.white,
  97. paddingLeft: 1,
  98. paddingRight: 1,
  99. position: 'relative'
  100. },
  101. /**
  102. * The thumbnails indicator container.
  103. */
  104. thumbnailIndicatorContainer: {
  105. alignSelf: 'stretch',
  106. bottom: 4,
  107. flex: 1,
  108. flexDirection: 'row',
  109. left: 4,
  110. position: 'absolute'
  111. },
  112. /**
  113. * Pinned video thumbnail style.
  114. */
  115. thumbnailPinned: {
  116. borderColor: ColorPalette.blue,
  117. shadowColor: ColorPalette.black,
  118. shadowOffset: {
  119. height: 5,
  120. width: 5
  121. },
  122. shadowRadius: 5
  123. }
  124. };