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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. /**
  3. * The style for participant actions.
  4. */
  5. const participantActions = {
  6. alignItems: 'center',
  7. zIndex: 1
  8. };
  9. /**
  10. * The style for participant states.
  11. */
  12. const participantState = {
  13. alignItems: 'center',
  14. display: 'flex',
  15. justifyContent: 'center'
  16. };
  17. /**
  18. * The style for content.
  19. */
  20. const flexContent = {
  21. alignItems: 'center',
  22. color: BaseTheme.palette.icon01,
  23. display: 'flex',
  24. flex: 1
  25. };
  26. /**
  27. * The style of the participants pane buttons.
  28. */
  29. const container = {
  30. alignItems: 'center',
  31. display: 'flex',
  32. flexDirection: 'row',
  33. height: 72,
  34. paddingRight: 16,
  35. width: '100%'
  36. };
  37. /**
  38. * The style of the participants pane buttons.
  39. */
  40. const button = {
  41. alignItems: 'center',
  42. backgroundColor: BaseTheme.palette.action02,
  43. borderRadius: BaseTheme.shape.borderRadius,
  44. display: 'flex',
  45. height: 48,
  46. justifyContent: 'center',
  47. marginLeft: 'auto'
  48. };
  49. /**
  50. * Small buttons.
  51. */
  52. const smallButton = {
  53. ...button,
  54. width: 48
  55. };
  56. /**
  57. * The style of the participants pane buttons description.
  58. */
  59. const buttonContent = {
  60. ...BaseTheme.typography.labelButton,
  61. ...flexContent,
  62. color: BaseTheme.palette.text01,
  63. justifyContent: 'center'
  64. };
  65. /**
  66. * The styles of the native components of the feature {@code participants}.
  67. */
  68. export default {
  69. participantActions: {
  70. ...participantActions
  71. },
  72. participantActionsHover: {
  73. ...participantActions,
  74. backgroundColor: '#292929',
  75. bottom: 1,
  76. display: 'none',
  77. position: 'absolute',
  78. right: 8,
  79. top: 0,
  80. after: {
  81. backgroundColor: 'linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #292929 100%)',
  82. content: '',
  83. bottom: 0,
  84. display: 'block',
  85. left: 0,
  86. pointerEvents: 'none',
  87. position: 'absolute',
  88. top: 0,
  89. transform: 'translateX(-100%)',
  90. width: 40
  91. }
  92. },
  93. participantActionsPermanent: {
  94. ...participantActions,
  95. display: 'flex'
  96. },
  97. participantActionButton: {
  98. backgroundColor: BaseTheme.palette.action01,
  99. borderRadius: BaseTheme.shape.borderRadius
  100. },
  101. participantActionButtonText: {
  102. ...BaseTheme.typography.labelRegular
  103. },
  104. allParticipantActionButton: {
  105. ...BaseTheme.typography.labelRegular,
  106. color: BaseTheme.palette.action01
  107. },
  108. participantContainer: {
  109. alignItems: 'center',
  110. display: 'flex',
  111. flexDirection: 'row',
  112. marginRight: BaseTheme.spacing[6],
  113. paddingLeft: 8,
  114. paddingRight: 8
  115. },
  116. participantContent: {
  117. alignItems: 'center',
  118. display: 'flex',
  119. flexDirection: 'row',
  120. flexWrap: 'wrap',
  121. height: 64,
  122. overflow: 'hidden',
  123. paddingLeft: BaseTheme.spacing[2],
  124. paddingTop: BaseTheme.spacing[4],
  125. width: '100%'
  126. },
  127. participantNameContainer: {
  128. display: 'flex',
  129. flexDirection: 'row',
  130. marginRight: BaseTheme.spacing[3],
  131. overflow: 'hidden',
  132. width: '50%'
  133. },
  134. participantName: {
  135. overflow: 'hidden',
  136. color: BaseTheme.palette.text01
  137. },
  138. isLocal: {
  139. color: BaseTheme.palette.text01
  140. },
  141. participantsPane: {
  142. backgroundColor: BaseTheme.palette.ui01
  143. },
  144. participantStatesContainer: {
  145. display: 'flex',
  146. flexDirection: 'row',
  147. justifyItems: 'space-between',
  148. marginLeft: 'auto'
  149. },
  150. participantStateAudio: {
  151. ...participantState
  152. },
  153. participantStateVideo: {
  154. ...participantState,
  155. marginRight: 8
  156. },
  157. raisedHandIndicator: {
  158. backgroundColor: BaseTheme.palette.warning02,
  159. borderRadius: BaseTheme.shape.borderRadius / 2,
  160. height: 24,
  161. marginRight: 8,
  162. width: 24
  163. },
  164. raisedHandIcon: {
  165. ...flexContent,
  166. top: 4
  167. },
  168. lobbyListDescription: {
  169. color: BaseTheme.palette.text01,
  170. overflow: 'hidden',
  171. padding: BaseTheme.spacing[2]
  172. },
  173. lobbyListContainer: {
  174. ...container
  175. },
  176. lobbyListActions: {
  177. flexDirection: 'row',
  178. marginLeft: 'auto'
  179. },
  180. header: {
  181. ...container
  182. },
  183. footer: {
  184. ...container,
  185. marginTop: 'auto'
  186. },
  187. closeButton: {
  188. ...smallButton
  189. },
  190. closeIcon: {
  191. ...buttonContent,
  192. left: 8
  193. },
  194. moreButton: {
  195. ...smallButton
  196. },
  197. moreIcon: {
  198. ...buttonContent,
  199. left: 8
  200. },
  201. muteAllButton: {
  202. ...button,
  203. left: 80
  204. },
  205. muteAllContent: {
  206. ...buttonContent
  207. }
  208. };