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

styles.js 2.3KB

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