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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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. participantContainer: {
  106. alignItems: 'center',
  107. borderBottomColor: BaseTheme.palette.field01Hover,
  108. borderBottomWidth: 2,
  109. display: 'flex',
  110. flexDirection: 'row',
  111. height: BaseTheme.spacing[9],
  112. paddingLeft: BaseTheme.spacing[3],
  113. paddingRight: BaseTheme.spacing[3],
  114. width: '100%'
  115. },
  116. participantContent: {
  117. alignItems: 'center',
  118. display: 'flex',
  119. flexDirection: 'row',
  120. height: '100%',
  121. overflow: 'hidden',
  122. width: '100%'
  123. },
  124. participantNameContainer: {
  125. display: 'flex',
  126. flexDirection: 'row',
  127. overflow: 'hidden',
  128. paddingLeft: BaseTheme.spacing[3],
  129. width: '63%'
  130. },
  131. participantName: {
  132. overflow: 'hidden',
  133. color: BaseTheme.palette.text01
  134. },
  135. isLocal: {
  136. alignSelf: 'center',
  137. color: BaseTheme.palette.text01,
  138. marginLeft: 4
  139. },
  140. participantsPane: {
  141. backgroundColor: BaseTheme.palette.ui01
  142. },
  143. participantStatesContainer: {
  144. display: 'flex',
  145. flexDirection: 'row',
  146. marginLeft: 'auto',
  147. width: '15%'
  148. },
  149. participantStateVideo: {
  150. paddingRight: BaseTheme.spacing[3]
  151. },
  152. raisedHandIndicator: {
  153. backgroundColor: BaseTheme.palette.warning02,
  154. borderRadius: BaseTheme.shape.borderRadius / 2,
  155. height: BaseTheme.spacing[4],
  156. marginLeft: BaseTheme.spacing[2],
  157. width: BaseTheme.spacing[4]
  158. },
  159. raisedHandIcon: {
  160. ...flexContent,
  161. top: BaseTheme.spacing[1]
  162. },
  163. lobbyList: {
  164. position: 'relative'
  165. },
  166. meetingList: {
  167. position: 'relative',
  168. marginTop: BaseTheme.spacing[3]
  169. },
  170. lobbyListDetails: {
  171. alignItems: 'center',
  172. display: 'flex',
  173. flexDirection: 'row',
  174. justifyContent: 'space-between',
  175. overflow: 'hidden',
  176. paddingLeft: BaseTheme.spacing[3],
  177. position: 'relative',
  178. width: '100%'
  179. },
  180. lobbyListDescription: {
  181. ...participantListDescription
  182. },
  183. meetingListDescription: {
  184. ...participantListDescription,
  185. marginLeft: BaseTheme.spacing[3]
  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. justifyContent: 'space-between',
  207. paddingRight: BaseTheme.spacing[3],
  208. position: 'relative',
  209. right: BaseTheme.spacing[0],
  210. left: BaseTheme.spacing[0]
  211. },
  212. closeButton: {
  213. ...smallButton,
  214. marginLeft: 'auto'
  215. },
  216. closeIcon: {
  217. ...buttonContent,
  218. height: BaseTheme.spacing[5],
  219. marginLeft: 'auto'
  220. },
  221. inviteButton: {
  222. backgroundColor: BaseTheme.palette.action01,
  223. marginTop: BaseTheme.spacing[2],
  224. marginLeft: BaseTheme.spacing[3],
  225. marginRight: BaseTheme.spacing[3]
  226. },
  227. inviteLabel: {
  228. ...BaseTheme.typography.labelButtonLarge,
  229. textTransform: 'capitalize'
  230. },
  231. moreButton: {
  232. ...smallButton
  233. },
  234. moreIcon: {
  235. ...buttonContent,
  236. height: BaseTheme.spacing[5],
  237. marginLeft: 'auto'
  238. },
  239. contextMenuMore: {
  240. backgroundColor: BaseTheme.palette.bottomSheet,
  241. borderRadius: BaseTheme.shape.borderRadius
  242. },
  243. muteAllButton: {
  244. ...muteAllButton
  245. },
  246. muteAllMoreButton: {
  247. ...muteAllButton,
  248. right: BaseTheme.spacing[3]
  249. },
  250. muteAllLabel: {
  251. ...BaseTheme.typography.labelButtonLarge,
  252. color: BaseTheme.palette.text01,
  253. height: BaseTheme.spacing[7],
  254. marginVertical: BaseTheme.spacing[0],
  255. marginHorizontal: BaseTheme.spacing[0],
  256. paddingTop: 12,
  257. paddingBottom: 12,
  258. textTransform: 'capitalize',
  259. width: 94
  260. },
  261. contextMenuItem: {
  262. ...contextMenuItem
  263. },
  264. contextMenuItemSection: {
  265. ...contextMenuItem
  266. },
  267. contextMenuItemSectionAvatar: {
  268. alignItems: 'center',
  269. backgroundColor: BaseTheme.palette.bottomSheet,
  270. borderBottomColor: BaseTheme.palette.dividerColor,
  271. borderBottomWidth: 1,
  272. borderTopLeftRadius: BaseTheme.spacing[3],
  273. borderTopRightRadius: BaseTheme.spacing[3],
  274. flexDirection: 'row',
  275. height: BaseTheme.spacing[7],
  276. paddingLeft: BaseTheme.spacing[3]
  277. },
  278. contextMenuItemText: {
  279. ...contextMenuItemText,
  280. marginLeft: BaseTheme.spacing[3]
  281. },
  282. contextMenuItemName: {
  283. color: BaseTheme.palette.text04,
  284. flexShrink: 1,
  285. fontSize: BaseTheme.spacing[3],
  286. marginLeft: BaseTheme.spacing[3],
  287. opacity: 0.90
  288. },
  289. divider: {
  290. backgroundColor: BaseTheme.palette.dividerColor
  291. }
  292. };