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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import {
  2. createStyleSheet,
  3. BoxModel
  4. } from '../../base/styles';
  5. const AVATAR_OPACITY = 0.4;
  6. const AVATAR_SIZE = 65;
  7. const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
  8. export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
  9. /**
  10. * The styles of the React {@code Components} of the feature: recent list
  11. * {@code RecentList}.
  12. */
  13. export default createStyleSheet({
  14. /**
  15. * The style of the actual avatar
  16. */
  17. avatar: {
  18. width: AVATAR_SIZE,
  19. height: AVATAR_SIZE,
  20. alignItems: 'center',
  21. backgroundColor: `rgba(23, 160, 219, ${AVATAR_OPACITY})`,
  22. justifyContent: 'center',
  23. borderRadius: AVATAR_SIZE
  24. },
  25. /**
  26. * The style of the avatar container that makes the avatar rounded.
  27. */
  28. avatarContainer: {
  29. flexDirection: 'row',
  30. justifyContent: 'space-around',
  31. alignItems: 'center',
  32. paddingTop: 5
  33. },
  34. /**
  35. * Simple {@code Text} content of the avatar (the actual initials)
  36. */
  37. avatarContent: {
  38. color: OVERLAY_FONT_COLOR,
  39. fontSize: 32,
  40. fontWeight: '100',
  41. backgroundColor: 'rgba(0, 0, 0, 0)',
  42. textAlign: 'center'
  43. },
  44. /**
  45. * List of styles of the avatar of a remote meeting
  46. * (not the default server). The number of colors are limited
  47. * because they should match nicely.
  48. */
  49. avatarRemoteServer1: {
  50. backgroundColor: `rgba(232, 105, 156, ${AVATAR_OPACITY})`
  51. },
  52. avatarRemoteServer2: {
  53. backgroundColor: `rgba(255, 198, 115, ${AVATAR_OPACITY})`
  54. },
  55. avatarRemoteServer3: {
  56. backgroundColor: `rgba(128, 128, 255, ${AVATAR_OPACITY})`
  57. },
  58. avatarRemoteServer4: {
  59. backgroundColor: `rgba(105, 232, 194, ${AVATAR_OPACITY})`
  60. },
  61. avatarRemoteServer5: {
  62. backgroundColor: `rgba(234, 255, 128, ${AVATAR_OPACITY})`
  63. },
  64. /**
  65. * Style of the conference length (if rendered)
  66. */
  67. confLength: {
  68. color: OVERLAY_FONT_COLOR,
  69. fontWeight: 'normal'
  70. },
  71. /**
  72. * This is the top level container style of the list
  73. */
  74. container: {
  75. flex: 1
  76. },
  77. /**
  78. * Second line of the list (date).
  79. * May be extended with server name later.
  80. */
  81. date: {
  82. color: OVERLAY_FONT_COLOR
  83. },
  84. /**
  85. * The style of the details container (right side) of the list
  86. */
  87. detailsContainer: {
  88. flex: 1,
  89. flexDirection: 'column',
  90. justifyContent: 'center',
  91. marginLeft: 2 * BoxModel.margin,
  92. alignItems: 'flex-start'
  93. },
  94. /**
  95. * The container for an info line with an inline icon.
  96. */
  97. infoWithIcon: {
  98. flexDirection: 'row',
  99. justifyContent: 'flex-start',
  100. alignItems: 'center'
  101. },
  102. /**
  103. * Style of an inline icon in an info line.
  104. */
  105. inlineIcon: {
  106. color: OVERLAY_FONT_COLOR,
  107. marginRight: 5
  108. },
  109. /**
  110. * First line of the list (room name)
  111. */
  112. roomName: {
  113. fontSize: 18,
  114. fontWeight: 'bold',
  115. color: OVERLAY_FONT_COLOR
  116. },
  117. /**
  118. * The style of one single row in the list
  119. */
  120. row: {
  121. padding: 8,
  122. paddingBottom: 0,
  123. flex: 1,
  124. flexDirection: 'row',
  125. alignItems: 'center'
  126. },
  127. /**
  128. * Style of the server name component (if rendered)
  129. */
  130. serverName: {
  131. color: OVERLAY_FONT_COLOR,
  132. fontWeight: 'normal'
  133. }
  134. });