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

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