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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import { BoxModel, ColorPalette } from '../../base/styles';
  2. /**
  3. * Filmstrip related styles common to both Web and native.
  4. */
  5. export const styles = {
  6. /**
  7. * Avatar style.
  8. */
  9. avatar: {
  10. alignSelf: 'center',
  11. borderRadius: 25,
  12. flex: 0,
  13. height: 50,
  14. width: 50
  15. },
  16. /**
  17. * Dominant speaker indicator style.
  18. */
  19. dominantSpeakerIndicator: {
  20. color: ColorPalette.white,
  21. fontSize: 15
  22. },
  23. /**
  24. * Dominant speaker indicator background style.
  25. */
  26. dominantSpeakerIndicatorBackground: {
  27. backgroundColor: ColorPalette.blue,
  28. borderRadius: 15,
  29. left: 4,
  30. padding: 5,
  31. position: 'absolute',
  32. top: 4
  33. },
  34. /**
  35. * The style of the Container which represents the very filmstrip.
  36. */
  37. filmstrip: {
  38. alignItems: 'flex-end',
  39. alignSelf: 'stretch',
  40. bottom: BoxModel.margin,
  41. flex: 1,
  42. flexDirection: 'column',
  43. left: 0,
  44. position: 'absolute',
  45. right: 0
  46. },
  47. /**
  48. * The style of the content container of the ScrollView which is placed
  49. * inside filmstrip and which contains the participants' thumbnails in order
  50. * to allow scrolling through them if they do not fit within the display.
  51. */
  52. filmstripScrollViewContentContainer: {
  53. paddingHorizontal: BoxModel.padding
  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. * Video thumbnail style.
  67. */
  68. thumbnail: {
  69. alignItems: 'stretch',
  70. backgroundColor: ColorPalette.appBackground,
  71. borderColor: '#424242',
  72. borderRadius: 3,
  73. borderStyle: 'solid',
  74. borderWidth: 1,
  75. flex: 1,
  76. justifyContent: 'center',
  77. marginLeft: 2,
  78. marginRight: 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. };