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

styles.js 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  2. import { BoxModel, ColorPalette, fixAndroidViewClipping } from '../../../base/styles';
  3. export const INSECURE_ROOM_NAME_LABEL_COLOR = ColorPalette.warning;
  4. const NAVBAR_BUTTON_SIZE = 24;
  5. /**
  6. * The styles of the feature conference.
  7. */
  8. export default {
  9. /**
  10. * {@code Conference} style.
  11. */
  12. conference: fixAndroidViewClipping({
  13. alignSelf: 'stretch',
  14. backgroundColor: '#040404',
  15. flex: 1
  16. }),
  17. displayNameContainer: {
  18. margin: 10
  19. },
  20. headerNavigationButton: {
  21. marginLeft: 12
  22. },
  23. /**
  24. * View that contains the indicators.
  25. */
  26. indicatorContainer: {
  27. flex: 1,
  28. flexDirection: 'row'
  29. },
  30. inviteButtonContainer: {
  31. position: 'absolute',
  32. top: 0,
  33. right: 0,
  34. zIndex: 1
  35. },
  36. inviteButton: {
  37. iconStyle: {
  38. padding: 10,
  39. color: ColorPalette.white,
  40. fontSize: NAVBAR_BUTTON_SIZE
  41. },
  42. underlayColor: ColorPalette.buttonUnderlay
  43. },
  44. lonelyButton: {
  45. alignItems: 'center',
  46. borderRadius: 24,
  47. flexDirection: 'row',
  48. height: 48,
  49. justifyContent: 'space-around',
  50. paddingHorizontal: 12
  51. },
  52. lonelyButtonComponents: {
  53. marginHorizontal: 6
  54. },
  55. lonelyMeetingContainer: {
  56. alignSelf: 'stretch',
  57. alignItems: 'center',
  58. padding: BoxModel.padding * 2
  59. },
  60. lonelyMessage: {
  61. paddingVertical: 12
  62. },
  63. pipButtonContainer: {
  64. position: 'absolute',
  65. top: 0,
  66. left: 0,
  67. zIndex: 1
  68. },
  69. pipButton: {
  70. iconStyle: {
  71. padding: 10,
  72. color: ColorPalette.white,
  73. fontSize: NAVBAR_BUTTON_SIZE
  74. },
  75. underlayColor: ColorPalette.buttonUnderlay
  76. },
  77. navBarSafeView: {
  78. left: 0,
  79. position: 'absolute',
  80. right: 0,
  81. top: 0
  82. },
  83. navBarWrapper: {
  84. alignItems: 'center',
  85. flex: 1,
  86. flexDirection: 'row',
  87. height: 44,
  88. justifyContent: 'center',
  89. paddingHorizontal: 14
  90. },
  91. roomTimer: {
  92. color: ColorPalette.white,
  93. fontSize: 12,
  94. fontWeight: '400',
  95. paddingHorizontal: 8
  96. },
  97. roomTimerView: {
  98. backgroundColor: 'rgba(0,0,0,0.8)',
  99. borderBottomRightRadius: 3,
  100. borderTopRightRadius: 3,
  101. height: 28,
  102. justifyContent: 'center',
  103. minWidth: 50
  104. },
  105. roomName: {
  106. color: ColorPalette.white,
  107. fontSize: 14,
  108. fontWeight: '400'
  109. },
  110. roomNameView: {
  111. backgroundColor: 'rgba(0,0,0,0.6)',
  112. borderBottomLeftRadius: 3,
  113. borderTopLeftRadius: 3,
  114. flexShrink: 1,
  115. height: 28,
  116. justifyContent: 'center',
  117. paddingHorizontal: 10
  118. },
  119. roomNameWrapper: {
  120. flexDirection: 'row',
  121. marginHorizontal: 35
  122. },
  123. /**
  124. * The style of the {@link View} which expands over the whole
  125. * {@link Conference} area and splits it between the {@link Filmstrip} and
  126. * the {@link Toolbox}.
  127. */
  128. toolboxAndFilmstripContainer: {
  129. bottom: 0,
  130. flexDirection: 'column',
  131. justifyContent: 'flex-end',
  132. left: 0,
  133. position: 'absolute',
  134. right: 0,
  135. top: 0
  136. },
  137. insecureRoomNameLabel: {
  138. backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR
  139. }
  140. };
  141. ColorSchemeRegistry.register('Conference', {
  142. lonelyButton: {
  143. backgroundColor: schemeColor('inviteButtonBackground')
  144. },
  145. lonelyMessage: {
  146. color: schemeColor('onVideoText')
  147. }
  148. });