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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. marginTop: BaseTheme.spacing[2]
  75. };
  76. /**
  77. * The styles of the native components of the feature {@code participants}.
  78. */
  79. export default {
  80. participantActionsButtonAdmit: {
  81. backgroundColor: BaseTheme.palette.action01,
  82. borderRadius: BaseTheme.shape.borderRadius,
  83. flexDirection: 'row',
  84. height: BaseTheme.spacing[6],
  85. marginRight: BaseTheme.spacing[3],
  86. position: 'absolute',
  87. right: 0,
  88. zIndex: 1
  89. },
  90. participantActionsButtonContent: {
  91. alignItems: 'center',
  92. display: 'flex',
  93. height: BaseTheme.spacing[5],
  94. top: BaseTheme.spacing[1]
  95. },
  96. participantActionsButtonText: {
  97. color: BaseTheme.palette.text01,
  98. textTransform: 'capitalize'
  99. },
  100. admitAllParticipantsActionButtonLabel: {
  101. ...BaseTheme.typography.heading6,
  102. color: BaseTheme.palette.link01,
  103. textTransform: 'capitalize'
  104. },
  105. admitAllParticipantsActionButton: {
  106. marginLeft: 'auto'
  107. },
  108. participantContainer: {
  109. alignItems: 'center',
  110. borderBottomColor: BaseTheme.palette.field01Hover,
  111. borderBottomWidth: 2,
  112. display: 'flex',
  113. flexDirection: 'row',
  114. height: BaseTheme.spacing[9],
  115. paddingLeft: BaseTheme.spacing[3],
  116. paddingRight: BaseTheme.spacing[3],
  117. width: '100%'
  118. },
  119. participantContent: {
  120. alignItems: 'center',
  121. display: 'flex',
  122. flexDirection: 'row',
  123. height: '100%',
  124. overflow: 'hidden',
  125. width: '100%'
  126. },
  127. participantNameContainer: {
  128. display: 'flex',
  129. flexDirection: 'row',
  130. overflow: 'hidden',
  131. paddingLeft: BaseTheme.spacing[3],
  132. width: '63%'
  133. },
  134. participantName: {
  135. overflow: 'hidden',
  136. color: BaseTheme.palette.text01
  137. },
  138. isLocal: {
  139. alignSelf: 'center',
  140. color: BaseTheme.palette.text01,
  141. marginLeft: 4
  142. },
  143. participantsPane: {
  144. backgroundColor: BaseTheme.palette.ui01
  145. },
  146. participantStatesContainer: {
  147. display: 'flex',
  148. flexDirection: 'row',
  149. marginLeft: 'auto',
  150. width: '15%'
  151. },
  152. participantStateVideo: {
  153. paddingRight: BaseTheme.spacing[3]
  154. },
  155. raisedHandIndicator: {
  156. backgroundColor: BaseTheme.palette.warning02,
  157. borderRadius: BaseTheme.shape.borderRadius / 2,
  158. height: BaseTheme.spacing[4],
  159. marginLeft: BaseTheme.spacing[2],
  160. width: BaseTheme.spacing[4]
  161. },
  162. raisedHandIcon: {
  163. ...flexContent,
  164. top: BaseTheme.spacing[1]
  165. },
  166. lobbyList: {
  167. position: 'relative'
  168. },
  169. meetingList: {
  170. position: 'relative',
  171. marginTop: BaseTheme.spacing[3]
  172. },
  173. lobbyListDetails: {
  174. alignItems: 'center',
  175. display: 'flex',
  176. flexDirection: 'row',
  177. justifyContent: 'space-between',
  178. overflow: 'hidden',
  179. paddingLeft: BaseTheme.spacing[3],
  180. position: 'relative',
  181. width: '100%'
  182. },
  183. lobbyListDescription: {
  184. ...participantListDescription
  185. },
  186. meetingListDescription: {
  187. ...participantListDescription,
  188. marginLeft: BaseTheme.spacing[3]
  189. },
  190. header: {
  191. alignItems: 'center',
  192. backgroundColor: BaseTheme.palette.ui01,
  193. top: BaseTheme.spacing[0],
  194. display: 'flex',
  195. flexDirection: 'row',
  196. height: BaseTheme.spacing[10],
  197. paddingRight: BaseTheme.spacing[3],
  198. position: 'relative',
  199. right: BaseTheme.spacing[0],
  200. left: BaseTheme.spacing[0]
  201. },
  202. footer: {
  203. alignItems: 'center',
  204. backgroundColor: BaseTheme.palette.ui01,
  205. bottom: BaseTheme.spacing[0],
  206. display: 'flex',
  207. flexDirection: 'row',
  208. height: BaseTheme.spacing[10],
  209. justifyContent: 'space-between',
  210. paddingRight: BaseTheme.spacing[3],
  211. position: 'relative',
  212. right: BaseTheme.spacing[0],
  213. left: BaseTheme.spacing[0]
  214. },
  215. closeButton: {
  216. ...smallButton,
  217. marginLeft: 'auto'
  218. },
  219. closeIcon: {
  220. ...buttonContent,
  221. height: BaseTheme.spacing[5],
  222. marginLeft: 'auto'
  223. },
  224. inviteButton: {
  225. backgroundColor: BaseTheme.palette.action01,
  226. marginTop: BaseTheme.spacing[2],
  227. marginLeft: BaseTheme.spacing[3],
  228. marginRight: BaseTheme.spacing[3]
  229. },
  230. inviteLabel: {
  231. ...BaseTheme.typography.labelButtonLarge,
  232. textTransform: 'capitalize'
  233. },
  234. moreButton: {
  235. ...smallButton
  236. },
  237. moreIcon: {
  238. ...buttonContent,
  239. height: BaseTheme.spacing[5],
  240. marginLeft: 'auto'
  241. },
  242. contextMenuMore: {
  243. backgroundColor: BaseTheme.palette.bottomSheet,
  244. borderRadius: BaseTheme.shape.borderRadius
  245. },
  246. muteAllButton: {
  247. ...muteAllButton
  248. },
  249. muteAllMoreButton: {
  250. ...muteAllButton,
  251. right: BaseTheme.spacing[3]
  252. },
  253. muteAllLabel: {
  254. ...BaseTheme.typography.labelButtonLarge,
  255. color: BaseTheme.palette.text01,
  256. height: BaseTheme.spacing[7],
  257. marginVertical: BaseTheme.spacing[0],
  258. marginHorizontal: BaseTheme.spacing[0],
  259. paddingTop: 12,
  260. paddingBottom: 12,
  261. textTransform: 'capitalize',
  262. width: 94
  263. },
  264. contextMenuItem: {
  265. ...contextMenuItem
  266. },
  267. contextMenuItemSection: {
  268. ...contextMenuItem
  269. },
  270. contextMenuItemSectionAvatar: {
  271. alignItems: 'center',
  272. backgroundColor: BaseTheme.palette.bottomSheet,
  273. borderBottomColor: BaseTheme.palette.dividerColor,
  274. borderBottomWidth: 1,
  275. borderTopLeftRadius: BaseTheme.spacing[3],
  276. borderTopRightRadius: BaseTheme.spacing[3],
  277. flexDirection: 'row',
  278. height: BaseTheme.spacing[7],
  279. paddingLeft: BaseTheme.spacing[3]
  280. },
  281. contextMenuItemText: {
  282. ...contextMenuItemText,
  283. marginLeft: BaseTheme.spacing[3]
  284. },
  285. contextMenuItemName: {
  286. color: BaseTheme.palette.text04,
  287. flexShrink: 1,
  288. fontSize: BaseTheme.spacing[3],
  289. marginLeft: BaseTheme.spacing[3],
  290. opacity: 0.90
  291. },
  292. divider: {
  293. backgroundColor: BaseTheme.palette.dividerColor
  294. }
  295. };