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

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