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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. /**
  3. * The style for participant states.
  4. */
  5. const participantState = {
  6. display: 'flex',
  7. justifyContent: 'center'
  8. };
  9. /**
  10. * The style for participant list.
  11. */
  12. const participantList = {
  13. marginLeft: BaseTheme.spacing[4],
  14. marginRight: BaseTheme.spacing[4],
  15. position: 'relative'
  16. };
  17. /**
  18. * The style for participant list description.
  19. */
  20. const participantListDescription = {
  21. color: BaseTheme.palette.text01,
  22. paddingBottom: BaseTheme.spacing[3],
  23. paddingTop: BaseTheme.spacing[3],
  24. position: 'relative',
  25. width: '55%'
  26. };
  27. /**
  28. * The style for content.
  29. */
  30. const flexContent = {
  31. alignItems: 'center',
  32. color: BaseTheme.palette.icon01,
  33. display: 'flex',
  34. flex: 1
  35. };
  36. /**
  37. * The style of the participants pane buttons.
  38. */
  39. const button = {
  40. alignItems: 'center',
  41. backgroundColor: BaseTheme.palette.action02,
  42. borderRadius: BaseTheme.shape.borderRadius,
  43. display: 'flex',
  44. height: BaseTheme.spacing[7],
  45. justifyContent: 'center',
  46. marginLeft: 'auto'
  47. };
  48. /**
  49. * Small buttons.
  50. */
  51. const smallButton = {
  52. ...button,
  53. width: BaseTheme.spacing[7]
  54. };
  55. /**
  56. * The style of the participants pane buttons description.
  57. */
  58. const buttonContent = {
  59. ...BaseTheme.typography.labelButton,
  60. ...flexContent,
  61. color: BaseTheme.palette.text01,
  62. justifyContent: 'center'
  63. };
  64. /**
  65. * The styles of the native components of the feature {@code participants}.
  66. */
  67. export default {
  68. lobbyParticipantItem: {
  69. flexDirection: 'row',
  70. position: 'absolute',
  71. right: 0,
  72. zIndex: 1
  73. },
  74. participantActionsButtonAdmit: {
  75. backgroundColor: BaseTheme.palette.action01,
  76. borderRadius: BaseTheme.shape.borderRadius,
  77. height: BaseTheme.spacing[5]
  78. },
  79. participantActionsButtonReject: {
  80. backgroundColor: BaseTheme.palette.action01,
  81. borderRadius: BaseTheme.shape.borderRadius,
  82. height: BaseTheme.spacing[5]
  83. },
  84. participantActionsButtonContent: {
  85. alignItems: 'center',
  86. display: 'flex',
  87. height: BaseTheme.spacing[5]
  88. },
  89. participantActionsButtonText: {
  90. color: BaseTheme.palette.text01,
  91. textTransform: 'capitalize'
  92. },
  93. allParticipantActionsButton: {
  94. ...BaseTheme.typography.labelRegular,
  95. color: BaseTheme.palette.action01,
  96. textTransform: 'capitalize'
  97. },
  98. participantContainer: {
  99. alignItems: 'center',
  100. borderBottomColor: BaseTheme.palette.field01Hover,
  101. borderBottomWidth: 2,
  102. display: 'flex',
  103. flexDirection: 'row',
  104. height: BaseTheme.spacing[9],
  105. width: '100%'
  106. },
  107. participantContent: {
  108. alignItems: 'center',
  109. display: 'flex',
  110. flexDirection: 'row',
  111. height: '100%',
  112. overflow: 'hidden',
  113. width: '100%'
  114. },
  115. participantNameContainer: {
  116. display: 'flex',
  117. flexDirection: 'row',
  118. overflow: 'hidden',
  119. paddingLeft: BaseTheme.spacing[2],
  120. width: '63%'
  121. },
  122. participantName: {
  123. overflow: 'hidden',
  124. color: BaseTheme.palette.text01
  125. },
  126. isLocal: {
  127. color: BaseTheme.palette.text01
  128. },
  129. participantsPane: {
  130. backgroundColor: BaseTheme.palette.ui01
  131. },
  132. participantStatesContainer: {
  133. display: 'flex',
  134. flexDirection: 'row',
  135. marginLeft: BaseTheme.spacing[3]
  136. },
  137. participantStateAudio: {
  138. ...participantState
  139. },
  140. participantStateVideo: {
  141. ...participantState,
  142. paddingRight: BaseTheme.spacing[2]
  143. },
  144. raisedHandIndicator: {
  145. backgroundColor: BaseTheme.palette.warning02,
  146. borderRadius: BaseTheme.shape.borderRadius / 2,
  147. height: BaseTheme.spacing[4],
  148. marginRight: BaseTheme.spacing[2],
  149. width: BaseTheme.spacing[4]
  150. },
  151. raisedHandIcon: {
  152. ...flexContent,
  153. top: BaseTheme.spacing[1]
  154. },
  155. lobbyList: {
  156. ...participantList
  157. },
  158. meetingList: {
  159. ...participantList,
  160. marginTop: BaseTheme.spacing[3]
  161. },
  162. lobbyListDetails: {
  163. alignItems: 'center',
  164. display: 'flex',
  165. flexDirection: 'row',
  166. overflow: 'hidden',
  167. position: 'relative',
  168. width: '100%'
  169. },
  170. lobbyListDescription: {
  171. ...participantListDescription
  172. },
  173. meetingListDescription: {
  174. ...participantListDescription
  175. },
  176. lobbyListActions: {
  177. flexDirection: 'row',
  178. right: BaseTheme.spacing[2]
  179. },
  180. header: {
  181. alignItems: 'center',
  182. backgroundColor: BaseTheme.palette.ui01,
  183. top: BaseTheme.spacing[0],
  184. display: 'flex',
  185. flexDirection: 'row',
  186. height: BaseTheme.spacing[10],
  187. paddingRight: BaseTheme.spacing[3],
  188. position: 'relative',
  189. right: BaseTheme.spacing[0],
  190. left: BaseTheme.spacing[0]
  191. },
  192. footer: {
  193. alignItems: 'center',
  194. backgroundColor: BaseTheme.palette.ui01,
  195. bottom: BaseTheme.spacing[0],
  196. display: 'flex',
  197. flexDirection: 'row',
  198. height: BaseTheme.spacing[10],
  199. paddingRight: BaseTheme.spacing[3],
  200. position: 'relative',
  201. right: BaseTheme.spacing[0],
  202. left: BaseTheme.spacing[0]
  203. },
  204. closeButton: {
  205. ...smallButton
  206. },
  207. closeIcon: {
  208. ...buttonContent,
  209. left: BaseTheme.spacing[2]
  210. },
  211. moreButton: {
  212. ...smallButton
  213. },
  214. inviteButton: {
  215. backgroundColor: BaseTheme.palette.action01,
  216. marginTop: BaseTheme.spacing[2]
  217. },
  218. inviteLabel: {
  219. ...BaseTheme.typography.labelButtonLarge,
  220. textTransform: 'capitalize'
  221. },
  222. moreIcon: {
  223. ...buttonContent,
  224. left: BaseTheme.spacing[2]
  225. },
  226. muteAllButton: {
  227. ...button,
  228. left: BaseTheme.spacing[10] + BaseTheme.spacing[2]
  229. },
  230. muteAllContent: {
  231. ...buttonContent
  232. },
  233. muteAllLabel: {
  234. color: BaseTheme.palette.text01,
  235. textTransform: 'capitalize'
  236. }
  237. };