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 7.3KB

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