您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 3.7KB

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