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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import { Platform } from '../../base/react';
  2. import { BoxModel, 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. marginBottom: BoxModel.margin,
  53. marginLeft: BoxModel.margin,
  54. marginRight: BoxModel.margin
  55. },
  56. /**
  57. * The style of the wide {@link Filmstrip} version which displays thumbnails
  58. * in a column on the short size of the screen.
  59. */
  60. filmstripWide: {
  61. ...filmstrip,
  62. bottom: BoxModel.margin,
  63. left: BoxModel.margin,
  64. position: 'absolute',
  65. top: BoxModel.margin
  66. },
  67. /**
  68. * Moderator indicator style.
  69. */
  70. moderatorIndicator: {
  71. backgroundColor: 'transparent',
  72. bottom: 4,
  73. color: ColorPalette.white,
  74. position: 'absolute',
  75. right: 4
  76. },
  77. /**
  78. * The style of a participant's Thumbnail which renders either the video or
  79. * the avatar of the associated participant.
  80. */
  81. thumbnail: {
  82. alignItems: 'stretch',
  83. backgroundColor: ColorPalette.appBackground,
  84. borderColor: '#424242',
  85. borderRadius: 3,
  86. borderStyle: 'solid',
  87. borderWidth: 1,
  88. flex: 1,
  89. justifyContent: 'center',
  90. margin: 2,
  91. overflow: 'hidden',
  92. position: 'relative'
  93. },
  94. /**
  95. * The thumbnail audio and video muted indicator style.
  96. */
  97. thumbnailIndicator: {
  98. backgroundColor: 'transparent',
  99. color: ColorPalette.white,
  100. paddingLeft: 1,
  101. paddingRight: 1,
  102. position: 'relative'
  103. },
  104. /**
  105. * The thumbnails indicator container.
  106. */
  107. thumbnailIndicatorContainer: {
  108. alignSelf: 'stretch',
  109. bottom: 4,
  110. flex: 1,
  111. flexDirection: 'row',
  112. left: 4,
  113. position: 'absolute'
  114. },
  115. /**
  116. * Pinned video thumbnail style.
  117. */
  118. thumbnailPinned: {
  119. borderColor: ColorPalette.blue,
  120. shadowColor: ColorPalette.black,
  121. shadowOffset: {
  122. height: 5,
  123. width: 5
  124. },
  125. shadowRadius: 5
  126. }
  127. };