File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,9 @@ styles="{
260
260
room: {
261
261
colorUsername: '#0a0a0a',
262
262
colorMessage: '#67717a',
263
- colorTimestamp: '#a2aeb8'
263
+ colorTimestamp: '#a2aeb8',
264
+ colorStateOnline: '#4caf50',
265
+ colorStateOffline: '#ccc'
264
266
},
265
267
266
268
emoji: {
Original file line number Diff line number Diff line change @@ -282,11 +282,11 @@ input {
282
282
width : 9px ;
283
283
height : 9px ;
284
284
border-radius : 50% ;
285
- background-color : #ccc ;
285
+ background-color : var ( --chat-room-color-offline ) ;
286
286
margin-right : 6px ;
287
287
}
288
288
289
289
.state-online {
290
- background-color : #4caf50 ;
290
+ background-color : var ( --chat-room-color-online ) ;
291
291
}
292
292
</style >
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ export const defaultThemeStyles = {
78
78
room : {
79
79
colorUsername : '#0a0a0a' ,
80
80
colorMessage : '#67717a' ,
81
- colorTimestamp : '#a2aeb8'
81
+ colorTimestamp : '#a2aeb8' ,
82
+ colorStateOnline : '#4caf50' ,
83
+ colorStateOffline : '#9ca6af'
82
84
} ,
83
85
84
86
emoji : {
@@ -186,7 +188,9 @@ export const defaultThemeStyles = {
186
188
room : {
187
189
colorUsername : '#fff' ,
188
190
colorMessage : '#6c7278' ,
189
- colorTimestamp : '#6c7278'
191
+ colorTimestamp : '#6c7278' ,
192
+ colorStateOnline : '#4caf50' ,
193
+ colorStateOffline : '#596269'
190
194
} ,
191
195
192
196
emoji : {
@@ -304,6 +308,8 @@ export const cssThemeVars = ({
304
308
'--chat-room-color-username' : room . colorUsername ,
305
309
'--chat-room-color-message' : room . colorMessage ,
306
310
'--chat-room-color-timestamp' : room . colorTimestamp ,
311
+ '--chat-room-color-online' : room . colorStateOnline ,
312
+ '--chat-room-color-offline' : room . colorStateOffline ,
307
313
308
314
// emoji
309
315
'--chat-emoji-bg-color' : emoji . background ,
You can’t perform that action at this time.
0 commit comments