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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
  2. /**
  3. * The size of the microphone icon.
  4. */
  5. const MICROPHONE_SIZE = 180;
  6. /**
  7. * The styles of the safe area view that contains the title bar.
  8. */
  9. const titleBarSafeView = {
  10. left: 0,
  11. position: 'absolute',
  12. right: 0,
  13. top: 0
  14. };
  15. /**
  16. * The styles of the native components of Carmode.
  17. */
  18. export default {
  19. bottomContainer: {
  20. display: 'flex',
  21. flexDirection: 'column',
  22. alignItems: 'center',
  23. bottom: BaseTheme.spacing[8]
  24. },
  25. /**
  26. * {@code Conference} Style.
  27. */
  28. conference: {
  29. backgroundColor: BaseTheme.palette.uiBackground,
  30. flex: 1,
  31. justifyContent: 'center'
  32. },
  33. microphoneStyles: {
  34. container: {
  35. borderRadius: MICROPHONE_SIZE / 2,
  36. height: MICROPHONE_SIZE,
  37. maxHeight: MICROPHONE_SIZE,
  38. justifyContent: 'center',
  39. overflow: 'hidden',
  40. width: MICROPHONE_SIZE,
  41. maxWidth: MICROPHONE_SIZE,
  42. flex: 1,
  43. zIndex: 1,
  44. elevation: 1
  45. },
  46. icon: {
  47. color: BaseTheme.palette.text01,
  48. fontSize: MICROPHONE_SIZE * 0.45,
  49. fontWeight: '100'
  50. },
  51. iconContainer: {
  52. alignItems: 'center',
  53. alignSelf: 'stretch',
  54. flex: 1,
  55. justifyContent: 'center',
  56. backgroundColor: BaseTheme.palette.ui03
  57. },
  58. unmuted: {
  59. borderWidth: 4,
  60. borderColor: BaseTheme.palette.success01
  61. }
  62. },
  63. qualityLabelContainer: {
  64. borderBottomLeftRadius: 3,
  65. borderTopLeftRadius: 3,
  66. flexShrink: 1,
  67. paddingHorizontal: 2,
  68. justifyContent: 'center',
  69. marginTop: BaseTheme.spacing[2]
  70. },
  71. roomTimer: {
  72. ...BaseTheme.typography.bodyShortBold,
  73. color: BaseTheme.palette.text01,
  74. textAlign: 'center'
  75. },
  76. titleView: {
  77. width: 152,
  78. height: 28,
  79. backgroundColor: BaseTheme.palette.ui02,
  80. borderRadius: 12,
  81. alignSelf: 'center'
  82. },
  83. title: {
  84. margin: 'auto',
  85. textAlign: 'center',
  86. paddingVertical: BaseTheme.spacing[1],
  87. paddingHorizontal: BaseTheme.spacing[3],
  88. color: BaseTheme.palette.text02
  89. },
  90. soundDeviceButton: {
  91. marginBottom: BaseTheme.spacing[3],
  92. width: 240
  93. },
  94. endMeetingButton: {
  95. width: 240
  96. },
  97. headerLabels: {
  98. borderBottomLeftRadius: 3,
  99. borderTopLeftRadius: 3,
  100. flexShrink: 1,
  101. paddingHorizontal: 2,
  102. justifyContent: 'center'
  103. },
  104. titleBarSafeViewColor: {
  105. ...titleBarSafeView,
  106. backgroundColor: BaseTheme.palette.uiBackground
  107. },
  108. microphoneContainer: {
  109. flex: 1,
  110. alignItems: 'center',
  111. justifyContent: 'center'
  112. },
  113. titleBarWrapper: {
  114. alignItems: 'center',
  115. flex: 1,
  116. flexDirection: 'row',
  117. justifyContent: 'center'
  118. },
  119. roomNameWrapper: {
  120. flexDirection: 'row',
  121. marginRight: BaseTheme.spacing[2],
  122. flexShrink: 1,
  123. flexGrow: 1
  124. },
  125. roomNameView: {
  126. backgroundColor: 'rgba(0,0,0,0.6)',
  127. flexShrink: 1,
  128. justifyContent: 'center',
  129. paddingHorizontal: BaseTheme.spacing[2]
  130. },
  131. roomName: {
  132. color: BaseTheme.palette.text01,
  133. ...BaseTheme.typography.bodyShortBold
  134. },
  135. titleBar: {
  136. alignSelf: 'center',
  137. marginTop: BaseTheme.spacing[1]
  138. },
  139. videoStoppedLabel: {
  140. ...BaseTheme.typography.bodyShortRegularLarge,
  141. color: BaseTheme.palette.text01,
  142. marginBottom: BaseTheme.spacing[3],
  143. textAlign: 'center',
  144. width: '100%'
  145. },
  146. connectionIndicatorIcon: {
  147. fontSize: 20
  148. }
  149. };