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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. export const INSECURE_ROOM_NAME_LABEL_COLOR = BaseTheme.palette.actionDanger;
  3. const TITLE_BAR_BUTTON_SIZE = 24;
  4. /**
  5. * The styles of the safe area view that contains the title bar.
  6. */
  7. const titleBarSafeView = {
  8. left: 0,
  9. position: 'absolute',
  10. right: 0,
  11. top: 0
  12. };
  13. const alwaysOnTitleBar = {
  14. alignItems: 'center',
  15. alignSelf: 'flex-end',
  16. backgroundColor: 'rgba(0, 0, 0, .5)',
  17. borderRadius: BaseTheme.shape.borderRadius,
  18. flexDirection: 'row',
  19. justifyContent: 'center',
  20. marginTop: BaseTheme.spacing[3],
  21. paddingRight: BaseTheme.spacing[0],
  22. '&:not(:empty)': {
  23. padding: BaseTheme.spacing[1]
  24. }
  25. };
  26. /**
  27. * The styles of the feature conference.
  28. */
  29. export default {
  30. /**
  31. * {@code Conference} Style.
  32. */
  33. conference: {
  34. alignSelf: 'stretch',
  35. backgroundColor: BaseTheme.palette.uiBackground,
  36. flex: 1
  37. },
  38. displayNameContainer: {
  39. margin: 10
  40. },
  41. /**
  42. * View that contains the indicators.
  43. */
  44. indicatorContainer: {
  45. flex: 1,
  46. flexDirection: 'row'
  47. },
  48. titleBarButtonContainer: {
  49. borderRadius: 3,
  50. height: BaseTheme.spacing[7],
  51. marginTop: BaseTheme.spacing[1],
  52. marginRight: BaseTheme.spacing[1],
  53. zIndex: 1,
  54. width: BaseTheme.spacing[7]
  55. },
  56. titleBarButton: {
  57. iconStyle: {
  58. color: BaseTheme.palette.icon01,
  59. padding: 12,
  60. fontSize: TITLE_BAR_BUTTON_SIZE
  61. },
  62. underlayColor: 'transparent'
  63. },
  64. lonelyMeetingContainer: {
  65. alignSelf: 'stretch',
  66. alignItems: 'center',
  67. padding: BaseTheme.spacing[3]
  68. },
  69. lonelyMessage: {
  70. color: BaseTheme.palette.text01,
  71. paddingVertical: BaseTheme.spacing[2]
  72. },
  73. pipButtonContainer: {
  74. '&:not(:empty)': {
  75. borderRadius: 3,
  76. height: BaseTheme.spacing[7],
  77. marginTop: BaseTheme.spacing[1],
  78. marginLeft: BaseTheme.spacing[1],
  79. zIndex: 1,
  80. width: BaseTheme.spacing[7]
  81. }
  82. },
  83. pipButton: {
  84. iconStyle: {
  85. color: BaseTheme.palette.icon01,
  86. padding: 12,
  87. fontSize: TITLE_BAR_BUTTON_SIZE
  88. },
  89. underlayColor: 'transparent'
  90. },
  91. titleBarSafeViewColor: {
  92. ...titleBarSafeView,
  93. backgroundColor: BaseTheme.palette.uiBackground
  94. },
  95. titleBarSafeViewTransparent: {
  96. ...titleBarSafeView
  97. },
  98. titleBarWrapper: {
  99. alignItems: 'center',
  100. flex: 1,
  101. flexDirection: 'row',
  102. height: BaseTheme.spacing[8],
  103. justifyContent: 'center'
  104. },
  105. alwaysOnTitleBar: {
  106. ...alwaysOnTitleBar,
  107. marginRight: BaseTheme.spacing[2]
  108. },
  109. alwaysOnTitleBarWide: {
  110. ...alwaysOnTitleBar,
  111. marginRight: BaseTheme.spacing[12]
  112. },
  113. expandedLabelWrapper: {
  114. zIndex: 1
  115. },
  116. roomTimer: {
  117. ...BaseTheme.typography.bodyShortBold,
  118. color: BaseTheme.palette.text01,
  119. lineHeight: 14,
  120. textAlign: 'center'
  121. },
  122. roomTimerView: {
  123. backgroundColor: BaseTheme.palette.ui03,
  124. borderRadius: BaseTheme.shape.borderRadius,
  125. height: 32,
  126. justifyContent: 'center',
  127. paddingHorizontal: BaseTheme.spacing[2],
  128. paddingVertical: BaseTheme.spacing[1],
  129. minWidth: 50
  130. },
  131. roomName: {
  132. color: BaseTheme.palette.text01,
  133. ...BaseTheme.typography.bodyShortBold,
  134. paddingVertical: 6
  135. },
  136. roomNameView: {
  137. backgroundColor: 'rgba(0,0,0,0.6)',
  138. borderBottomLeftRadius: 3,
  139. borderTopLeftRadius: 3,
  140. flexShrink: 1,
  141. justifyContent: 'center',
  142. paddingHorizontal: 10
  143. },
  144. roomNameWrapper: {
  145. flexDirection: 'row',
  146. marginRight: 10,
  147. marginLeft: 8,
  148. flexShrink: 1,
  149. flexGrow: 1
  150. },
  151. /**
  152. * The style of the {@link View} which expands over the whole
  153. * {@link Conference} area and splits it between the {@link Filmstrip} and
  154. * the {@link Toolbox}.
  155. */
  156. toolboxAndFilmstripContainer: {
  157. bottom: 0,
  158. flexDirection: 'column',
  159. justifyContent: 'flex-end',
  160. left: 0,
  161. position: 'absolute',
  162. right: 0,
  163. top: 0
  164. },
  165. insecureRoomNameLabel: {
  166. backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR,
  167. borderRadius: BaseTheme.shape.borderRadius,
  168. height: 32
  169. },
  170. raisedHandsCountLabel: {
  171. alignItems: 'center',
  172. backgroundColor: BaseTheme.palette.warning02,
  173. borderRadius: BaseTheme.shape.borderRadius,
  174. flexDirection: 'row',
  175. marginBottom: BaseTheme.spacing[0],
  176. marginLeft: BaseTheme.spacing[0]
  177. },
  178. raisedHandsCountLabelText: {
  179. color: BaseTheme.palette.uiBackground,
  180. paddingLeft: BaseTheme.spacing[2]
  181. }
  182. };