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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import { Platform } from '../../base/react';
  2. import { BoxModel, ColorPalette } from '../../base/styles';
  3. /**
  4. * Filmstrip related styles common to both Web and native.
  5. */
  6. export const styles = {
  7. /**
  8. * Avatar style.
  9. */
  10. avatar: {
  11. alignSelf: 'center',
  12. // XXX Workaround for Android: for images < 80 the border radius doesn't
  13. // work properly, but applying a radius twice as big does the trick.
  14. borderRadius: Platform.OS === 'android' ? 100 : 25,
  15. flex: 0,
  16. height: 50,
  17. width: 50
  18. },
  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 Container which represents the very filmstrip.
  39. */
  40. filmstrip: {
  41. alignItems: 'flex-end',
  42. alignSelf: 'stretch',
  43. bottom: BoxModel.margin,
  44. flex: 1,
  45. flexDirection: 'column',
  46. left: 0,
  47. position: 'absolute',
  48. right: 0
  49. },
  50. /**
  51. * The style of the content container of the ScrollView which is placed
  52. * inside filmstrip and which contains the participants' thumbnails in order
  53. * to allow scrolling through them if they do not fit within the display.
  54. */
  55. filmstripScrollViewContentContainer: {
  56. paddingHorizontal: BoxModel.padding
  57. },
  58. /**
  59. * Moderator indicator style.
  60. */
  61. moderatorIndicator: {
  62. backgroundColor: 'transparent',
  63. bottom: 4,
  64. color: ColorPalette.white,
  65. position: 'absolute',
  66. right: 4
  67. },
  68. /**
  69. * The style of a participant's Thumbnail which renders either the video or
  70. * the avatar of the associated participant.
  71. */
  72. thumbnail: {
  73. alignItems: 'stretch',
  74. backgroundColor: ColorPalette.appBackground,
  75. borderColor: '#424242',
  76. borderRadius: 3,
  77. borderStyle: 'solid',
  78. borderWidth: 1,
  79. flex: 1,
  80. justifyContent: 'center',
  81. marginLeft: 2,
  82. marginRight: 2,
  83. overflow: 'hidden',
  84. position: 'relative'
  85. },
  86. /**
  87. * The thumbnail audio and video muted indicator style.
  88. */
  89. thumbnailIndicator: {
  90. backgroundColor: 'transparent',
  91. color: ColorPalette.white,
  92. paddingLeft: 1,
  93. paddingRight: 1,
  94. position: 'relative'
  95. },
  96. /**
  97. * The thumbnails indicator container.
  98. */
  99. thumbnailIndicatorContainer: {
  100. alignSelf: 'stretch',
  101. bottom: 4,
  102. flex: 1,
  103. flexDirection: 'row',
  104. left: 4,
  105. position: 'absolute'
  106. },
  107. /**
  108. * Pinned video thumbnail style.
  109. */
  110. thumbnailPinned: {
  111. borderColor: ColorPalette.blue,
  112. shadowColor: ColorPalette.black,
  113. shadowOffset: {
  114. height: 5,
  115. width: 5
  116. },
  117. shadowRadius: 5
  118. }
  119. };