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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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: 4
  149. },
  150. participantsPane: {
  151. backgroundColor: BaseTheme.palette.ui01
  152. },
  153. participantStatesContainer: {
  154. display: 'flex',
  155. flexDirection: 'row',
  156. marginLeft: 'auto',
  157. width: '15%'
  158. },
  159. participantStateVideo: {
  160. paddingRight: BaseTheme.spacing[3]
  161. },
  162. raisedHandIndicator: {
  163. backgroundColor: BaseTheme.palette.warning02,
  164. borderRadius: BaseTheme.shape.borderRadius / 2,
  165. height: BaseTheme.spacing[4],
  166. marginLeft: BaseTheme.spacing[2],
  167. width: BaseTheme.spacing[4]
  168. },
  169. raisedHandIcon: {
  170. ...flexContent,
  171. top: BaseTheme.spacing[1]
  172. },
  173. lobbyList: {
  174. position: 'relative'
  175. },
  176. meetingList: {
  177. position: 'relative',
  178. marginTop: BaseTheme.spacing[3]
  179. },
  180. lobbyListDetails: {
  181. alignItems: 'center',
  182. display: 'flex',
  183. flexDirection: 'row',
  184. justifyContent: 'space-between',
  185. overflow: 'hidden',
  186. paddingLeft: BaseTheme.spacing[3],
  187. position: 'relative',
  188. width: '100%'
  189. },
  190. lobbyListDescription: {
  191. ...participantListDescription
  192. },
  193. meetingListDescription: {
  194. ...participantListDescription,
  195. marginLeft: BaseTheme.spacing[3]
  196. },
  197. footer: {
  198. alignItems: 'center',
  199. backgroundColor: BaseTheme.palette.ui01,
  200. bottom: BaseTheme.spacing[0],
  201. display: 'flex',
  202. flexDirection: 'row',
  203. height: BaseTheme.spacing[10],
  204. justifyContent: 'space-between',
  205. paddingRight: BaseTheme.spacing[3],
  206. position: 'relative',
  207. right: BaseTheme.spacing[0],
  208. left: BaseTheme.spacing[0]
  209. },
  210. inviteButton: {
  211. backgroundColor: BaseTheme.palette.action01,
  212. marginTop: BaseTheme.spacing[2],
  213. marginLeft: BaseTheme.spacing[3],
  214. marginRight: BaseTheme.spacing[3]
  215. },
  216. inviteLabel: {
  217. ...BaseTheme.typography.labelButtonLarge,
  218. textTransform: 'capitalize'
  219. },
  220. moreButton: {
  221. ...smallButton
  222. },
  223. moreIcon: {
  224. ...buttonContent,
  225. height: BaseTheme.spacing[5],
  226. marginLeft: 'auto'
  227. },
  228. muteAllButton: {
  229. ...muteAllButton
  230. },
  231. muteAllMoreButton: {
  232. ...muteAllButton,
  233. right: BaseTheme.spacing[3]
  234. },
  235. muteAllLabel: {
  236. ...BaseTheme.typography.labelButtonLarge,
  237. color: BaseTheme.palette.text01,
  238. height: BaseTheme.spacing[7],
  239. marginVertical: BaseTheme.spacing[0],
  240. marginHorizontal: BaseTheme.spacing[0],
  241. paddingTop: 12,
  242. paddingBottom: 12,
  243. textTransform: 'capitalize',
  244. width: 94
  245. },
  246. contextMenuItem: {
  247. ...contextMenuItem
  248. },
  249. contextMenuItemSection: {
  250. ...contextMenuItem
  251. },
  252. contextMenuItemSectionAvatar: {
  253. alignItems: 'center',
  254. backgroundColor: BaseTheme.palette.bottomSheet,
  255. borderBottomColor: BaseTheme.palette.dividerColor,
  256. borderBottomWidth: 1,
  257. borderTopLeftRadius: BaseTheme.spacing[3],
  258. borderTopRightRadius: BaseTheme.spacing[3],
  259. flexDirection: 'row',
  260. height: BaseTheme.spacing[7],
  261. paddingLeft: BaseTheme.spacing[3]
  262. },
  263. contextMenuItemText: {
  264. ...contextMenuItemText,
  265. marginLeft: BaseTheme.spacing[3]
  266. },
  267. contextMenuItemTextNoIcon: {
  268. ...contextMenuItemText,
  269. marginLeft: BaseTheme.spacing[6]
  270. },
  271. contextMenuItemName: {
  272. color: BaseTheme.palette.text04,
  273. flexShrink: 1,
  274. fontSize: BaseTheme.spacing[3],
  275. marginLeft: BaseTheme.spacing[3],
  276. opacity: 0.90
  277. },
  278. divider: {
  279. backgroundColor: BaseTheme.palette.dividerColor
  280. }
  281. };