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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. import { MD_ITEM_HEIGHT } from '../../../base/dialog/components/native/styles';
  2. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  3. /**
  4. * The style for participant list description.
  5. */
  6. const participantListDescription = {
  7. ...BaseTheme.typography.heading6,
  8. color: BaseTheme.palette.text02,
  9. paddingBottom: BaseTheme.spacing[3],
  10. paddingTop: BaseTheme.spacing[3],
  11. position: 'relative',
  12. width: '55%'
  13. };
  14. /**
  15. * The style for content.
  16. */
  17. const flexContent = {
  18. alignItems: 'center',
  19. color: BaseTheme.palette.icon01,
  20. display: 'flex',
  21. flex: 1
  22. };
  23. /**
  24. * The style for the context menu items text.
  25. */
  26. const contextMenuItemText = {
  27. ...BaseTheme.typography.bodyShortRegularLarge,
  28. color: BaseTheme.palette.text01
  29. };
  30. /**
  31. * The style of the participants pane buttons.
  32. */
  33. export const button = {
  34. backgroundColor: BaseTheme.palette.action02,
  35. borderRadius: BaseTheme.shape.borderRadius,
  36. display: 'flex',
  37. flexDirection: 'row',
  38. justifyContent: 'center',
  39. minWidth: 0
  40. };
  41. /**
  42. * Small buttons.
  43. */
  44. const smallButton = {
  45. ...button,
  46. height: BaseTheme.spacing[7],
  47. width: BaseTheme.spacing[7]
  48. };
  49. /**
  50. * Mute all button.
  51. */
  52. const muteAllButton = {
  53. ...button,
  54. marginLeft: 'auto'
  55. };
  56. /**
  57. * The style of the participants pane buttons description.
  58. */
  59. const buttonContent = {
  60. ...BaseTheme.typography.labelButton,
  61. alignContent: 'center',
  62. color: BaseTheme.palette.text01,
  63. display: 'flex',
  64. justifyContent: 'center'
  65. };
  66. /**
  67. * The style of the context menu pane items.
  68. */
  69. const contextMenuItem = {
  70. alignItems: 'center',
  71. display: 'flex',
  72. flexDirection: 'row',
  73. height: BaseTheme.spacing[7],
  74. marginLeft: BaseTheme.spacing[3]
  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. participantDetailsContainer: {
  125. display: 'flex',
  126. flexDirection: 'column',
  127. width: '100%'
  128. },
  129. participantNameContainer: {
  130. display: 'flex',
  131. flexDirection: 'row',
  132. overflow: 'hidden',
  133. paddingLeft: BaseTheme.spacing[3],
  134. width: '100%'
  135. },
  136. participantName: {
  137. overflow: 'hidden',
  138. color: BaseTheme.palette.text01
  139. },
  140. moderatorLabel: {
  141. color: BaseTheme.palette.text03,
  142. alignSelf: 'flex-start',
  143. paddingLeft: BaseTheme.spacing[3],
  144. paddingTop: BaseTheme.spacing[1]
  145. },
  146. isLocal: {
  147. alignSelf: 'center',
  148. color: BaseTheme.palette.text01,
  149. marginLeft: BaseTheme.spacing[1]
  150. },
  151. participantsPane: {
  152. backgroundColor: BaseTheme.palette.ui01,
  153. flex: 1,
  154. justifyContent: 'center'
  155. },
  156. participantStatesContainer: {
  157. display: 'flex',
  158. flexDirection: 'row',
  159. marginLeft: 'auto',
  160. width: '15%'
  161. },
  162. participantStateVideo: {
  163. paddingRight: BaseTheme.spacing[3]
  164. },
  165. raisedHandIndicator: {
  166. backgroundColor: BaseTheme.palette.warning02,
  167. borderRadius: BaseTheme.shape.borderRadius / 2,
  168. height: BaseTheme.spacing[4],
  169. marginLeft: BaseTheme.spacing[2],
  170. width: BaseTheme.spacing[4]
  171. },
  172. raisedHandIcon: {
  173. ...flexContent,
  174. top: BaseTheme.spacing[1]
  175. },
  176. lobbyListContainer: {
  177. position: 'relative'
  178. },
  179. lobbyListDescription: {
  180. ...participantListDescription
  181. },
  182. lobbyListDetails: {
  183. alignItems: 'center',
  184. display: 'flex',
  185. flexDirection: 'row',
  186. justifyContent: 'space-between',
  187. overflow: 'hidden',
  188. paddingLeft: BaseTheme.spacing[3],
  189. position: 'relative',
  190. width: '100%'
  191. },
  192. meetingListContainer: {
  193. flex: 1
  194. },
  195. meetingListDescription: {
  196. ...participantListDescription,
  197. marginLeft: BaseTheme.spacing[3]
  198. },
  199. footer: {
  200. alignItems: 'center',
  201. flexDirection: 'row',
  202. paddingHorizontal: BaseTheme.spacing[3],
  203. paddingVertical: BaseTheme.spacing[2]
  204. },
  205. headerCloseIcon: {
  206. marginLeft: 12
  207. },
  208. inviteButton: {
  209. backgroundColor: BaseTheme.palette.action01,
  210. marginBottom: BaseTheme.spacing[4],
  211. marginLeft: BaseTheme.spacing[3],
  212. marginRight: BaseTheme.spacing[3]
  213. },
  214. inviteLabel: {
  215. ...BaseTheme.typography.labelButtonLarge,
  216. textTransform: 'capitalize'
  217. },
  218. moreButton: {
  219. ...smallButton
  220. },
  221. moreIcon: {
  222. ...buttonContent,
  223. height: BaseTheme.spacing[5],
  224. marginLeft: 'auto'
  225. },
  226. muteAllButton: {
  227. ...muteAllButton
  228. },
  229. muteAllMoreButton: {
  230. ...muteAllButton,
  231. right: BaseTheme.spacing[3]
  232. },
  233. muteAllLabel: {
  234. ...BaseTheme.typography.labelButtonLarge,
  235. color: BaseTheme.palette.text01,
  236. height: BaseTheme.spacing[7],
  237. marginVertical: BaseTheme.spacing[0],
  238. marginHorizontal: BaseTheme.spacing[0],
  239. paddingTop: 12,
  240. paddingBottom: 12,
  241. textTransform: 'capitalize',
  242. width: 94
  243. },
  244. contextMenuItem: {
  245. ...contextMenuItem
  246. },
  247. contextMenuItemSection: {
  248. ...contextMenuItem
  249. },
  250. contextMenuItemSectionAvatar: {
  251. alignItems: 'center',
  252. backgroundColor: BaseTheme.palette.bottomSheet,
  253. borderBottomColor: BaseTheme.palette.dividerColor,
  254. borderBottomWidth: 1,
  255. borderTopLeftRadius: BaseTheme.spacing[3],
  256. borderTopRightRadius: BaseTheme.spacing[3],
  257. flexDirection: 'row',
  258. height: BaseTheme.spacing[7],
  259. paddingLeft: BaseTheme.spacing[3]
  260. },
  261. contextMenuItemText: {
  262. ...contextMenuItemText,
  263. marginLeft: BaseTheme.spacing[3]
  264. },
  265. contextMenuItemTextNoIcon: {
  266. ...contextMenuItemText,
  267. marginLeft: BaseTheme.spacing[6]
  268. },
  269. contextMenuItemName: {
  270. color: BaseTheme.palette.text04,
  271. flexShrink: 1,
  272. fontSize: BaseTheme.spacing[3],
  273. marginLeft: BaseTheme.spacing[3],
  274. opacity: 0.90
  275. },
  276. divider: {
  277. backgroundColor: BaseTheme.palette.dividerColor
  278. },
  279. clearableInput: {
  280. display: 'flex',
  281. height: MD_ITEM_HEIGHT,
  282. borderWidth: 1,
  283. borderStyle: 'solid',
  284. borderColor: BaseTheme.palette.border02,
  285. backgroundColor: BaseTheme.palette.uiBackground,
  286. borderRadius: 6,
  287. marginLeft: BaseTheme.spacing[3],
  288. marginRight: BaseTheme.spacing[3]
  289. },
  290. clearableInputFocus: {
  291. borderWidth: 3,
  292. borderColor: BaseTheme.palette.field01Focus
  293. },
  294. clearButton: {
  295. backgroundColor: 'transparent',
  296. borderWidth: 0,
  297. position: 'absolute',
  298. right: 0,
  299. top: 0,
  300. paddingTop: 12,
  301. paddingLeft: BaseTheme.spacing[2],
  302. width: 40,
  303. height: MD_ITEM_HEIGHT
  304. },
  305. clearIcon: {
  306. color: BaseTheme.palette.icon02
  307. },
  308. clearableInputTextInput: {
  309. backgroundColor: 'transparent',
  310. borderWidth: 0,
  311. height: '100%',
  312. width: '100%',
  313. textAlign: 'center',
  314. color: BaseTheme.palette.text01,
  315. paddingTop: BaseTheme.spacing[2],
  316. paddingBottom: BaseTheme.spacing[2],
  317. paddingLeft: BaseTheme.spacing[3],
  318. paddingRight: BaseTheme.spacing[3],
  319. fontSize: 16
  320. }
  321. };