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

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