您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 8.0KB

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