Skip to content

Commit b66a7b3

Browse files
committed
(docs) update readme
1 parent 09420d2 commit b66a7b3

File tree

1 file changed

+77
-31
lines changed

1 file changed

+77
-31
lines changed

README.md

Lines changed: 77 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -172,42 +172,79 @@ textMessages="{
172172

173173
```javascript
174174
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: {
203240
search: '#9ca6af',
204241
add: '#1976d2',
205242
menu: '#0a0a0a',
206243
close: '#9ca6af',
207244
closeImage: '#fff',
208245
file: '#1976d2',
209246
paperclip: '#1976d2',
210-
closeOutline: '#1976d2',
247+
closeOutline: '#000',
211248
send: '#1976d2',
212249
sendDisabled: '#9ca6af',
213250
emoji: '#1976d2',
@@ -217,7 +254,7 @@ colors="{
217254
eye: '#fff',
218255
dropdown: '#fff',
219256
dropdownScroll: '#0a0a0a'
220-
}
257+
}
221258
}"
222259
```
223260

@@ -232,6 +269,14 @@ rooms="[
232269
{
233270
roomId: 1,
234271
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+
},
235280
users: [
236281
{
237282
_id: 1234,
@@ -259,6 +304,7 @@ messages="[
259304
username: 'John Doe',
260305
date: '13 November',
261306
timestamp: '10:20',
307+
seen: true,
262308
file: {
263309
name: 'My File',
264310
size: 67351,
@@ -376,7 +422,7 @@ messages: {
376422
MESSAGE_ID_1: {
377423
content: 'My first message',
378424
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',
380426
seen: true
381427
}
382428
}

0 commit comments

Comments
 (0)