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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. /**
  3. * The style for participant states.
  4. */
  5. const participantState = {
  6. display: 'flex',
  7. justifyContent: 'center'
  8. };
  9. /**
  10. * The style for participant list.
  11. */
  12. const participantList = {
  13. marginLeft: BaseTheme.spacing[3],
  14. marginRight: BaseTheme.spacing[3],
  15. position: 'relative'
  16. };
  17. /**
  18. * The style for participant list description.
  19. */
  20. const participantListDescription = {
  21. color: BaseTheme.palette.text01,
  22. paddingBottom: BaseTheme.spacing[3],
  23. paddingTop: BaseTheme.spacing[3],
  24. position: 'relative',
  25. width: '55%'
  26. };
  27. /**
  28. * The style for content.
  29. */
  30. const flexContent = {
  31. alignItems: 'center',
  32. color: BaseTheme.palette.icon01,
  33. display: 'flex',
  34. flex: 1
  35. };
  36. /**
  37. * The style of the participants pane buttons.
  38. */
  39. const button = {
  40. alignItems: 'center',
  41. backgroundColor: BaseTheme.palette.action02,
  42. borderRadius: BaseTheme.shape.borderRadius,
  43. display: 'flex',
  44. height: BaseTheme.spacing[7],
  45. justifyContent: 'center',
  46. marginLeft: 'auto'
  47. };
  48. /**
  49. * Small buttons.
  50. */
  51. const smallButton = {
  52. ...button,
  53. width: BaseTheme.spacing[7]
  54. };
  55. /**
  56. * The style of the participants pane buttons description.
  57. */
  58. const buttonContent = {
  59. ...BaseTheme.typography.labelButton,
  60. ...flexContent,
  61. color: BaseTheme.palette.text01,
  62. justifyContent: 'center'
  63. };
  64. /**
  65. * The style of the context menu pane items.
  66. */
  67. const contextMenuItem = {
  68. flexDirection: 'row',
  69. paddingBottom: 16,
  70. paddingTop: 16
  71. };
  72. /**
  73. * The styles of the native components of the feature {@code participants}.
  74. */
  75. export default {
  76. participantActionsButtonAdmit: {
  77. backgroundColor: BaseTheme.palette.action01,
  78. borderRadius: BaseTheme.shape.borderRadius,
  79. flexDirection: 'row',
  80. height: BaseTheme.spacing[5],
  81. position: 'absolute',
  82. right: 0,
  83. zIndex: 1
  84. },
  85. participantActionsButtonReject: {
  86. backgroundColor: BaseTheme.palette.action01,
  87. borderRadius: BaseTheme.shape.borderRadius,
  88. height: BaseTheme.spacing[5]
  89. },
  90. participantActionsButtonContent: {
  91. alignItems: 'center',
  92. display: 'flex',
  93. height: BaseTheme.spacing[5]
  94. },
  95. participantActionsButtonText: {
  96. color: BaseTheme.palette.text01,
  97. textTransform: 'capitalize'
  98. },
  99. allParticipantActionsButton: {
  100. ...BaseTheme.typography.heading6,
  101. color: BaseTheme.palette.link01,
  102. marginRight: 'auto',
  103. textTransform: 'capitalize'
  104. },
  105. participantContainer: {
  106. alignItems: 'center',
  107. borderBottomColor: BaseTheme.palette.field01Hover,
  108. borderBottomWidth: 2,
  109. display: 'flex',
  110. flexDirection: 'row',
  111. height: BaseTheme.spacing[9],
  112. width: '100%'
  113. },
  114. participantContent: {
  115. alignItems: 'center',
  116. display: 'flex',
  117. flexDirection: 'row',
  118. height: '100%',
  119. overflow: 'hidden',
  120. width: '100%'
  121. },
  122. participantNameContainer: {
  123. display: 'flex',
  124. flexDirection: 'row',
  125. overflow: 'hidden',
  126. paddingLeft: BaseTheme.spacing[2],
  127. width: '63%'
  128. },
  129. participantName: {
  130. overflow: 'hidden',
  131. color: BaseTheme.palette.text01
  132. },
  133. isLocal: {
  134. alignSelf: 'center',
  135. color: BaseTheme.palette.text01,
  136. marginLeft: 4
  137. },
  138. participantsPane: {
  139. backgroundColor: BaseTheme.palette.ui01
  140. },
  141. participantStatesContainer: {
  142. display: 'flex',
  143. flexDirection: 'row',
  144. marginLeft: 'auto',
  145. width: 72
  146. },
  147. participantStateAudio: {
  148. ...participantState
  149. },
  150. participantStateVideo: {
  151. ...participantState,
  152. paddingRight: BaseTheme.spacing[2]
  153. },
  154. raisedHandIndicator: {
  155. backgroundColor: BaseTheme.palette.warning02,
  156. borderRadius: BaseTheme.shape.borderRadius / 2,
  157. height: BaseTheme.spacing[4],
  158. marginRight: BaseTheme.spacing[2],
  159. width: BaseTheme.spacing[4]
  160. },
  161. raisedHandIcon: {
  162. ...flexContent,
  163. top: BaseTheme.spacing[1]
  164. },
  165. lobbyList: {
  166. ...participantList
  167. },
  168. meetingList: {
  169. ...participantList,
  170. marginTop: BaseTheme.spacing[3]
  171. },
  172. lobbyListDetails: {
  173. alignItems: 'center',
  174. display: 'flex',
  175. flexDirection: 'row',
  176. justifyContent: 'space-between',
  177. overflow: 'hidden',
  178. position: 'relative',
  179. width: '100%'
  180. },
  181. lobbyListDescription: {
  182. ...participantListDescription
  183. },
  184. meetingListDescription: {
  185. ...participantListDescription
  186. },
  187. header: {
  188. alignItems: 'center',
  189. backgroundColor: BaseTheme.palette.ui01,
  190. top: BaseTheme.spacing[0],
  191. display: 'flex',
  192. flexDirection: 'row',
  193. height: BaseTheme.spacing[10],
  194. paddingRight: BaseTheme.spacing[3],
  195. position: 'relative',
  196. right: BaseTheme.spacing[0],
  197. left: BaseTheme.spacing[0]
  198. },
  199. footer: {
  200. alignItems: 'center',
  201. backgroundColor: BaseTheme.palette.ui01,
  202. bottom: BaseTheme.spacing[0],
  203. display: 'flex',
  204. flexDirection: 'row',
  205. height: BaseTheme.spacing[10],
  206. paddingRight: BaseTheme.spacing[3],
  207. position: 'relative',
  208. right: BaseTheme.spacing[0],
  209. left: BaseTheme.spacing[0]
  210. },
  211. closeButton: {
  212. ...smallButton
  213. },
  214. closeIcon: {
  215. ...buttonContent,
  216. left: BaseTheme.spacing[2]
  217. },
  218. inviteButton: {
  219. backgroundColor: BaseTheme.palette.action01,
  220. marginTop: BaseTheme.spacing[2]
  221. },
  222. inviteLabel: {
  223. ...BaseTheme.typography.labelButtonLarge,
  224. textTransform: 'capitalize'
  225. },
  226. moreButton: {
  227. ...smallButton
  228. },
  229. moreIcon: {
  230. ...buttonContent,
  231. left: BaseTheme.spacing[2]
  232. },
  233. contextMenuMore: {
  234. backgroundColor: BaseTheme.palette.action02,
  235. borderRadius: BaseTheme.shape.borderRadius
  236. },
  237. muteAllButton: {
  238. ...button,
  239. left: BaseTheme.spacing[10] + BaseTheme.spacing[2]
  240. },
  241. muteAllContent: {
  242. ...buttonContent
  243. },
  244. muteAllLabel: {
  245. color: BaseTheme.palette.text01,
  246. textTransform: 'capitalize'
  247. },
  248. contextMenuItemMuteVideo: {
  249. ...contextMenuItem
  250. },
  251. contextMenuItemDontAllowUnmute: {
  252. ...contextMenuItem
  253. },
  254. contextMenuItemDetails: {
  255. ...contextMenuItem,
  256. borderBottomColor: BaseTheme.palette.section01,
  257. borderBottomWidth: 1
  258. },
  259. contextMenuItemReject: {
  260. ...contextMenuItem
  261. },
  262. contextMenuItemText: {
  263. ...BaseTheme.typography.bodyShortRegularLarge,
  264. alignSelf: 'center',
  265. color: BaseTheme.palette.text01,
  266. flexDirection: 'row',
  267. marginLeft: 8
  268. },
  269. contextMenuItemParticipantName: {
  270. ...BaseTheme.typography.bodyShortRegularLarge,
  271. color: BaseTheme.palette.text01
  272. },
  273. contextMenuIcon: {
  274. color: BaseTheme.palette.actionDanger
  275. }
  276. };