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

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