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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. import { ColorPalette, createStyleSheet } from '../../base/styles';
  2. import BaseTheme from '../../base/ui/components/BaseTheme';
  3. const NOTIFICATION_SIZE = 55;
  4. /**
  5. * The styles of the React {@code Component}s of the feature meeting-list i.e.
  6. * {@code CalendarList}.
  7. */
  8. export default createStyleSheet({
  9. /**
  10. * Button style of the open settings button.
  11. */
  12. noPermissionMessageButton: {
  13. backgroundColor: ColorPalette.blue,
  14. borderColor: ColorPalette.blue,
  15. borderRadius: 4,
  16. borderWidth: 1,
  17. height: 30,
  18. justifyContent: 'center',
  19. margin: 15,
  20. paddingHorizontal: 20
  21. },
  22. /**
  23. * Text style of the open settings button.
  24. */
  25. noPermissionMessageButtonText: {
  26. color: ColorPalette.white
  27. },
  28. /**
  29. * Text style of the no permission message.
  30. */
  31. noPermissionMessageText: {
  32. backgroundColor: 'transparent',
  33. color: 'rgba(255, 255, 255, 0.6)',
  34. textAlign: 'center'
  35. },
  36. /**
  37. * Top level view of the no permission message.
  38. */
  39. noPermissionMessageView: {
  40. alignItems: 'center',
  41. flex: 1,
  42. flexDirection: 'column',
  43. justifyContent: 'center',
  44. padding: 20
  45. },
  46. /**
  47. * The top level container of the notification.
  48. */
  49. notificationContainer: {
  50. alignSelf: 'flex-start',
  51. flexDirection: 'row',
  52. justifyContent: 'center',
  53. overflow: 'hidden',
  54. position: 'absolute'
  55. },
  56. /**
  57. * Additional style for the container when the notification is displayed
  58. * on the side (narrow view).
  59. */
  60. notificationContainerSide: {
  61. top: 100
  62. },
  63. /**
  64. * Additional style for the container when the notification is displayed
  65. * on the top (wide view).
  66. */
  67. notificationContainerTop: {
  68. justifyContent: 'center',
  69. left: 0,
  70. right: 0,
  71. top: 0
  72. },
  73. /**
  74. * The top level container of the notification.
  75. */
  76. notificationContent: {
  77. alignSelf: 'flex-start',
  78. flexDirection: 'row',
  79. height: NOTIFICATION_SIZE,
  80. justifyContent: 'center',
  81. paddingHorizontal: 10
  82. },
  83. /**
  84. * Color for upcoming meeting notification.
  85. */
  86. notificationContentNext: {
  87. backgroundColor: '#eeb231'
  88. },
  89. /**
  90. * Color for already ongoing meeting notifications.
  91. */
  92. notificationContentPast: {
  93. backgroundColor: 'red'
  94. },
  95. /**
  96. * Additional style for the content when the notification is displayed
  97. * on the side (narrow view).
  98. */
  99. notificationContentSide: {
  100. borderBottomRightRadius: NOTIFICATION_SIZE,
  101. borderTopRightRadius: NOTIFICATION_SIZE
  102. },
  103. /**
  104. * Additional style for the content when the notification is displayed
  105. * on the top (wide view).
  106. */
  107. notificationContentTop: {
  108. borderBottomLeftRadius: NOTIFICATION_SIZE / 2,
  109. borderBottomRightRadius: NOTIFICATION_SIZE / 2,
  110. paddingHorizontal: 20
  111. },
  112. /**
  113. * The icon of the notification.
  114. */
  115. notificationIcon: {
  116. color: 'white',
  117. fontSize: 25
  118. },
  119. /**
  120. * The container that contains the icon.
  121. */
  122. notificationIconContainer: {
  123. alignItems: 'center',
  124. flexDirection: 'row',
  125. height: NOTIFICATION_SIZE,
  126. justifyContent: 'center'
  127. },
  128. /**
  129. * A single line of text of the notification.
  130. */
  131. notificationText: {
  132. color: 'white',
  133. fontSize: 13
  134. },
  135. /**
  136. * The container for all the lines if the norification.
  137. */
  138. notificationTextContainer: {
  139. flexDirection: 'column',
  140. height: NOTIFICATION_SIZE,
  141. justifyContent: 'center'
  142. },
  143. /**
  144. * The touchable component.
  145. */
  146. touchableView: {
  147. flexDirection: 'row'
  148. },
  149. calendarSync: {
  150. backgroundColor: BaseTheme.palette.uiBackground,
  151. flex: 1,
  152. overflow: 'hidden'
  153. },
  154. calendarSyncDisabled: {
  155. backgroundColor: BaseTheme.palette.uiBackground,
  156. flex: 1,
  157. opacity: 0.8,
  158. overflow: 'hidden'
  159. }
  160. });