Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // @flow
  2. import {
  3. ColorPalette,
  4. createStyleSheet
  5. } from '../../../base/styles';
  6. /**
  7. * The styles of the feature chat.
  8. *
  9. * NOTE: Sizes and colors come from the 8x8 guidelines. This is the first
  10. * component to receive this treating, if others happen to have similar, we
  11. * need to extract the brand colors and sizes into a branding feature (planned
  12. * for the future).
  13. */
  14. export default createStyleSheet({
  15. /**
  16. * Wrapper View for the avatar.
  17. */
  18. avatarWrapper: {
  19. marginRight: 8
  20. },
  21. /**
  22. * Wrapper for the details together, such as name, message and time.
  23. */
  24. detailsWrapper: {
  25. alignItems: 'flex-start',
  26. flex: 1,
  27. flexDirection: 'column'
  28. },
  29. /**
  30. * The text node for the display name.
  31. */
  32. displayName: {
  33. color: 'rgb(118, 136, 152)',
  34. fontSize: 13
  35. },
  36. /**
  37. * The message text itself.
  38. */
  39. messageText: {
  40. color: 'rgb(28, 32, 37)',
  41. fontSize: 15
  42. },
  43. /**
  44. * Wrapper View for the entire block.
  45. */
  46. messageWrapper: {
  47. alignItems: 'flex-start',
  48. flex: 1,
  49. flexDirection: 'row',
  50. marginHorizontal: 17,
  51. marginVertical: 4
  52. },
  53. /**
  54. * Background of the chat screen. Currently it's set to a transparent value
  55. * as the idea is that the participant would still want to see at least a
  56. * part of the video when he/she is in the chat window.
  57. */
  58. modalBackdrop: {
  59. backgroundColor: 'rgba(127, 127, 127, 0.8)',
  60. flex: 1
  61. },
  62. /**
  63. * Style modifier for the {@code detailsWrapper} for own messages.
  64. */
  65. ownMessageDetailsWrapper: {
  66. alignItems: 'flex-end'
  67. },
  68. /**
  69. * Style modifier for the {@code textWrapper} for own messages.
  70. */
  71. ownTextWrapper: {
  72. backgroundColor: 'rgb(210, 231, 249)',
  73. borderTopLeftRadius: 8,
  74. borderTopRightRadius: 0
  75. },
  76. solidBGTimeText: {
  77. color: 'rgb(164, 184, 209)'
  78. },
  79. /**
  80. * Style modifier for the chat window when we're in audio only mode.
  81. */
  82. solidModalBackdrop: {
  83. backgroundColor: ColorPalette.white
  84. },
  85. /**
  86. * Style modifier for system (error) messages.
  87. */
  88. systemTextWrapper: {
  89. backgroundColor: 'rgb(247, 215, 215)'
  90. },
  91. /**
  92. * Wrapper for the name and the message text.
  93. */
  94. textWrapper: {
  95. alignItems: 'flex-start',
  96. backgroundColor: 'rgb(240, 243, 247)',
  97. borderRadius: 8,
  98. borderTopLeftRadius: 0,
  99. flexDirection: 'column',
  100. padding: 9
  101. },
  102. /**
  103. * Text node for the timestamp.
  104. */
  105. timeText: {
  106. color: ColorPalette.white,
  107. fontSize: 13
  108. }
  109. });