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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. * Video thumbnail style.
  70. */
  71. thumbnail: {
  72. alignItems: 'stretch',
  73. backgroundColor: ColorPalette.appBackground,
  74. borderColor: '#424242',
  75. borderRadius: 3,
  76. borderStyle: 'solid',
  77. borderWidth: 1,
  78. flex: 1,
  79. justifyContent: 'center',
  80. marginLeft: 2,
  81. marginRight: 2,
  82. overflow: 'hidden',
  83. position: 'relative'
  84. },
  85. /**
  86. * The thumbnail audio and video muted indicator style.
  87. */
  88. thumbnailIndicator: {
  89. backgroundColor: 'transparent',
  90. color: ColorPalette.white,
  91. paddingLeft: 1,
  92. paddingRight: 1,
  93. position: 'relative'
  94. },
  95. /**
  96. * The thumbnails indicator container.
  97. */
  98. thumbnailIndicatorContainer: {
  99. alignSelf: 'stretch',
  100. bottom: 4,
  101. flex: 1,
  102. flexDirection: 'row',
  103. left: 4,
  104. position: 'absolute'
  105. },
  106. /**
  107. * Pinned video thumbnail style.
  108. */
  109. thumbnailPinned: {
  110. borderColor: ColorPalette.blue,
  111. shadowColor: ColorPalette.black,
  112. shadowOffset: {
  113. height: 5,
  114. width: 5
  115. },
  116. shadowRadius: 5
  117. }
  118. };