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

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