Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  2. import { fixAndroidViewClipping } from '../../../base/styles';
  3. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  4. export const INSECURE_ROOM_NAME_LABEL_COLOR = BaseTheme.palette.actionDanger;
  5. const TITLE_BAR_BUTTON_SIZE = 24;
  6. const HEADER_ACTION_BUTTON_SIZE = 17;
  7. /**
  8. * The styles of the safe area view that contains the title bar.
  9. */
  10. const titleBarSafeView = {
  11. left: 0,
  12. position: 'absolute',
  13. right: 0,
  14. top: 0
  15. };
  16. /**
  17. * The styles of the feature conference.
  18. */
  19. export default {
  20. /**
  21. * {@code Conference} Style.
  22. */
  23. conference: fixAndroidViewClipping({
  24. alignSelf: 'stretch',
  25. backgroundColor: BaseTheme.palette.uiBackground,
  26. flex: 1
  27. }),
  28. displayNameContainer: {
  29. margin: 10
  30. },
  31. headerNavigationIcon: {
  32. marginLeft: 14
  33. },
  34. headerNavigationButton: {
  35. height: BaseTheme.spacing[6],
  36. marginTop: 20,
  37. width: BaseTheme.spacing[6]
  38. },
  39. headerNavigationText: {
  40. color: BaseTheme.palette.text01,
  41. fontSize: HEADER_ACTION_BUTTON_SIZE,
  42. marginHorizontal: BaseTheme.spacing[3]
  43. },
  44. headerNavigationTextBold: {
  45. ...BaseTheme.typography.labelButton,
  46. color: BaseTheme.palette.text01,
  47. fontSize: HEADER_ACTION_BUTTON_SIZE,
  48. marginHorizontal: BaseTheme.spacing[3]
  49. },
  50. /**
  51. * View that contains the indicators.
  52. */
  53. indicatorContainer: {
  54. flex: 1,
  55. flexDirection: 'row'
  56. },
  57. titleBarButtonContainer: {
  58. borderRadius: 3,
  59. height: BaseTheme.spacing[7],
  60. marginTop: BaseTheme.spacing[1],
  61. marginRight: BaseTheme.spacing[1],
  62. zIndex: 1,
  63. width: BaseTheme.spacing[7]
  64. },
  65. inviteButton: {
  66. iconStyle: {
  67. color: BaseTheme.palette.icon01,
  68. padding: 12,
  69. fontSize: TITLE_BAR_BUTTON_SIZE
  70. },
  71. underlayColor: BaseTheme.spacing.underlay01
  72. },
  73. lonelyButton: {
  74. alignItems: 'center',
  75. borderRadius: 24,
  76. flexDirection: 'row',
  77. height: BaseTheme.spacing[6],
  78. justifyContent: 'space-around',
  79. paddingHorizontal: 12
  80. },
  81. lonelyButtonComponents: {
  82. marginHorizontal: 6
  83. },
  84. lonelyMeetingContainer: {
  85. alignSelf: 'stretch',
  86. alignItems: 'center',
  87. padding: BaseTheme.spacing[3]
  88. },
  89. lonelyMessage: {
  90. paddingVertical: BaseTheme.spacing[2]
  91. },
  92. pipButtonContainer: {
  93. '&:not(:empty)': {
  94. borderRadius: 3,
  95. height: BaseTheme.spacing[7],
  96. marginTop: BaseTheme.spacing[1],
  97. marginLeft: BaseTheme.spacing[1],
  98. zIndex: 1,
  99. width: BaseTheme.spacing[7]
  100. }
  101. },
  102. pipButton: {
  103. iconStyle: {
  104. color: BaseTheme.palette.icon01,
  105. padding: 12,
  106. fontSize: TITLE_BAR_BUTTON_SIZE
  107. },
  108. underlayColor: BaseTheme.spacing.underlay01
  109. },
  110. titleBarSafeViewColor: {
  111. ...titleBarSafeView,
  112. backgroundColor: BaseTheme.palette.uiBackground
  113. },
  114. titleBarSafeViewTransparent: {
  115. ...titleBarSafeView
  116. },
  117. titleBarWrapper: {
  118. alignItems: 'center',
  119. flex: 1,
  120. flexDirection: 'row',
  121. height: BaseTheme.spacing[8],
  122. justifyContent: 'center'
  123. },
  124. alwaysOnTitleBar: {
  125. paddingRight: 0,
  126. borderRadius: 6,
  127. backgroundColor: 'rgba(0, 0, 0, .5)',
  128. marginLeft: BaseTheme.spacing[2],
  129. flexDirection: 'row',
  130. alignSelf: 'flex-start',
  131. alignItems: 'center',
  132. justifyContent: 'center',
  133. marginTop: BaseTheme.spacing[2],
  134. '&:not(:empty)': {
  135. padding: 4
  136. }
  137. },
  138. expandedLabelWrapper: {
  139. zIndex: 1
  140. },
  141. roomTimer: {
  142. color: BaseTheme.palette.text01,
  143. ...BaseTheme.typography.bodyShortBold,
  144. paddingHorizontal: 8,
  145. paddingVertical: 6,
  146. textAlign: 'center'
  147. },
  148. roomTimerView: {
  149. backgroundColor: BaseTheme.palette.action02,
  150. borderRadius: 3,
  151. justifyContent: 'center',
  152. minWidth: 50
  153. },
  154. roomName: {
  155. color: BaseTheme.palette.text01,
  156. ...BaseTheme.typography.bodyShortBold,
  157. paddingVertical: 6
  158. },
  159. roomNameView: {
  160. backgroundColor: 'rgba(0,0,0,0.6)',
  161. borderBottomLeftRadius: 3,
  162. borderTopLeftRadius: 3,
  163. flexShrink: 1,
  164. justifyContent: 'center',
  165. paddingHorizontal: 10
  166. },
  167. roomNameWrapper: {
  168. flexDirection: 'row',
  169. marginRight: 10,
  170. marginLeft: 8,
  171. flexShrink: 1,
  172. flexGrow: 1
  173. },
  174. /**
  175. * The style of the {@link View} which expands over the whole
  176. * {@link Conference} area and splits it between the {@link Filmstrip} and
  177. * the {@link Toolbox}.
  178. */
  179. toolboxAndFilmstripContainer: {
  180. bottom: 0,
  181. flexDirection: 'column',
  182. justifyContent: 'flex-end',
  183. left: 0,
  184. position: 'absolute',
  185. right: 0,
  186. top: 0
  187. },
  188. insecureRoomNameLabel: {
  189. backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR
  190. },
  191. raisedHandsCountLabel: {
  192. backgroundColor: BaseTheme.palette.warning02,
  193. flexDirection: 'row',
  194. alignItems: 'center',
  195. marginLeft: BaseTheme.spacing[0],
  196. marginBottom: BaseTheme.spacing[0],
  197. marginRight: BaseTheme.spacing[1]
  198. },
  199. raisedHandsCountLabelText: {
  200. color: BaseTheme.palette.uiBackground,
  201. paddingLeft: BaseTheme.spacing[2]
  202. }
  203. };
  204. ColorSchemeRegistry.register('Conference', {
  205. lonelyButton: {
  206. backgroundColor: schemeColor('inviteButtonBackground')
  207. },
  208. lonelyMessage: {
  209. color: schemeColor('onVideoText')
  210. }
  211. });