@@ -172,42 +172,79 @@ textMessages="{
172
172
173
173
``` javascript
174
174
colors= " {
175
- headerBg: '#fff',
176
- sidemenuBg: '#fff',
177
- sidemenuBgHover: '#f6f6f6',
178
- sidemenuBgActive: '#e5effa',
179
- sidemenuColorActive: '#1976d2',
180
- menuBg: '#fff',
181
- menuBgHover: '#f6f6f6',
182
- messagesBg: '#f8f9fa',
183
- messageBg: '#fff',
184
- messageMeBg: '#ccf2cf',
185
- messageDeletedBg: '#dadfe2',
186
- messageDeletedColor: '#757e85',
187
- messageUsernameColor: '#9ca6af',
188
- messageTimestampColor: '#828c94',
189
- messageDateBg: 'rgba(33, 148, 243, 0.15)',
190
- messageDateColor: '#505a62',
191
- messageTextColor: '#0a0a0a',
192
- messageReplyBg: 'rgba(0, 0, 0, 0.08)',
193
- messageReplyUsernameColor: '#0a0a0a',
194
- messageReplyContentColor: '#6e6e6e',
195
- roomLastMessage: '#67717a',
196
- roomTimestamp: '#a2aeb8',
197
- textColor: '#0a0a0a',
198
- inputBg: '#fff',
199
- footerBg: '#f0f0f0',
200
- spinnerColor: '#333',
201
- borderColor: '#d3dde7',
202
- iconsColor: {
175
+ general: {
176
+ color: '#0a0a0a',
177
+ backgroundInput: '#fff',
178
+ colorPlaceholder: '#9ca6af',
179
+ colorCaret: '#1976d2',
180
+ colorSpinner: '#333',
181
+ borderStyle: '1px solid #e1e4e8',
182
+ backgroundScrollIcon: '#fff'
183
+ },
184
+
185
+ header: {
186
+ background: '#fff'
187
+ },
188
+
189
+ footer: {
190
+ background: '#f0f0f0',
191
+ borderInputSelected: '#1976d2',
192
+ backgroundReply: 'rgba(0, 0, 0, 0.08)'
193
+ },
194
+
195
+ content: {
196
+ background: '#f8f9fa'
197
+ },
198
+
199
+ sidemenu: {
200
+ background: '#fff',
201
+ backgroundHover: '#f6f6f6',
202
+ backgroundActive: '#e5effa',
203
+ colorActive: '#1976d2',
204
+ borderColorSearch: '#e1e5e8'
205
+ },
206
+
207
+ dropdown: {
208
+ background: '#fff',
209
+ backgroundHover: '#f6f6f6'
210
+ },
211
+
212
+ message: {
213
+ background: '#fff',
214
+ backgroundMe: '#ccf2cf',
215
+ color: '#0a0a0a',
216
+ backgroundDeleted: '#dadfe2',
217
+ colorDeleted: '#757e85',
218
+ colorUsername: '#9ca6af',
219
+ colorTimestamp: '#828c94',
220
+ backgroundDate: '#e5effa',
221
+ colorDate: '#505a62',
222
+ backgroundReply: 'rgba(0, 0, 0, 0.08)',
223
+ colorReplyUsername: '#0a0a0a',
224
+ colorReply: '#6e6e6e',
225
+ backgroundImage: '#ddd'
226
+ },
227
+
228
+ room: {
229
+ colorUsername: '#0a0a0a',
230
+ colorMessage: '#67717a',
231
+ colorTimestamp: '#a2aeb8',
232
+ colorNewDot: '#1976d2'
233
+ },
234
+
235
+ emoji: {
236
+ background: '#fff'
237
+ },
238
+
239
+ icons: {
203
240
search: '#9ca6af',
204
241
add: '#1976d2',
205
242
menu: '#0a0a0a',
206
243
close: '#9ca6af',
207
244
closeImage: '#fff',
208
245
file: '#1976d2',
209
246
paperclip: '#1976d2',
210
- closeOutline: '#1976d2 ',
247
+ closeOutline: '#000 ',
211
248
send: '#1976d2',
212
249
sendDisabled: '#9ca6af',
213
250
emoji: '#1976d2',
@@ -217,7 +254,7 @@ colors="{
217
254
eye: '#fff',
218
255
dropdown: '#fff',
219
256
dropdownScroll: '#0a0a0a'
220
- }
257
+ }
221
258
}"
222
259
```
223
260
@@ -232,6 +269,14 @@ rooms="[
232
269
{
233
270
roomId: 1,
234
271
roomName: 'Room 1',
272
+ lastMessage: {
273
+ content: 'Last message received',
274
+ sender_id: 1234,
275
+ username: 'John Doe',
276
+ timestamp: '10:20',
277
+ seen: false,
278
+ new: true
279
+ },
235
280
users: [
236
281
{
237
282
_id: 1234,
@@ -259,6 +304,7 @@ messages="[
259
304
username: 'John Doe',
260
305
date: '13 November',
261
306
timestamp: '10:20',
307
+ seen: true,
262
308
file: {
263
309
name: 'My File',
264
310
size: 67351,
@@ -376,7 +422,7 @@ messages: {
376
422
MESSAGE_ID_1 : {
377
423
content: ' My first message' ,
378
424
sender_id: 2 ,
379
- timestamp: ' December 11, 2019 at 4:00:00 PM UTC+2 ' ,
425
+ timestamp: ' December 11, 2019 at 4:00:00 PM' ,
380
426
seen: true
381
427
}
382
428
}
0 commit comments