Skip to content

Commit 2c6b861

Browse files
Chat: address remarks from PMs and techwriter after reviewing the ThemeBuilder integration (#28413)
1 parent 4829481 commit 2c6b861

File tree

7 files changed

+134
-88
lines changed

7 files changed

+134
-88
lines changed

packages/devextreme-scss/scss/widgets/base/chat/layout/chat-messagegroup/_mixins.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
$messagegroup-start-gap,
55
$messagegroup-padding,
66
$information-font-size,
7-
$information-color,
7+
$information-author-name-color,
8+
$information-timestamp-color,
89
$information-gap
910
) {
1011
.dx-chat-messagegroup {
@@ -28,9 +29,13 @@
2829
column-gap: $messagegroup-start-gap;
2930
}
3031

31-
.dx-chat-messagegroup-time,
32+
.dx-chat-messagegroup-time {
33+
font-size: $information-font-size;
34+
color: $information-timestamp-color;
35+
}
36+
3237
.dx-chat-messagegroup-author-name {
3338
font-size: $information-font-size;
34-
color: $information-color;
39+
color: $information-author-name-color;
3540
}
3641
}

packages/devextreme-scss/scss/widgets/fluent/chat/_colors.scss

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,103 +18,117 @@ $chat-border-color: $base-border-color !default;
1818
$chat-messagebox-border-color: $chat-border-color !default;
1919

2020
/**
21-
* $name 30. Avatar text color
21+
* $name 30. Text color
2222
* $type color
2323
*/
2424
$chat-avatar-color: $base-text-color !default;
2525

2626
/**
27-
* $name 31. Avatar background color
27+
* $name 31. Background color
2828
* $type color
2929
*/
3030
$chat-avatar-background-color: $base-active-bg !default;
3131

3232
/**
33-
* $name 40. Bubble text color (your messages)
33+
* $name 40. Text color (sent messages)
3434
* $type color
3535
*/
3636
$chat-bubble-color-primary: $base-text-color !default;
3737

3838
/**
39-
* $name 41. Bubble background color (your messages)
39+
* $name 41. Background color (sent messages)
4040
* $type color
4141
*/
4242
$chat-bubble-background-color-primary: null !default;
4343

4444
/**
45-
* $name 42. Bubble text color (other messages)
45+
* $name 42. Text color (received messages)
4646
* $type color
4747
*/
4848
$chat-bubble-color-secondary: $base-text-color !default;
4949

5050
/**
51-
* $name 43. Bubble background color (other messages)
51+
* $name 43. Background color (received messages)
5252
* $type color
5353
*/
5454
$chat-bubble-background-color-secondary: $base-border-color !default;
5555

5656
/**
57-
* $name 50. Message caption color
57+
* $name 50. User name color
5858
* $type color
5959
*/
60-
$chat-information-color: null !default;
60+
$chat-information-author-name-color: null !default;
6161

6262
/**
63-
* $name 60. Day header color
63+
* $name 51. Timestamp color
64+
* $type color
65+
*/
66+
$chat-information-timestamp-color: null !default;
67+
68+
/**
69+
* $name 52. Day header color
6470
* $type color
6571
*/
6672
$chat-messagelist-day-header-color: null !default;
6773

6874
/**
69-
* $name 61. Empty list icon color
75+
* $name 55. Alert color
76+
* $type color
77+
*/
78+
$chat-alertlist-color: $base-invalid-color !default;
79+
80+
/**
81+
* $name 65. Icon color
7082
* $type color
7183
*/
7284
$chat-messagelist-empty-icon-color: null !default;
7385

7486
/**
75-
* $name 62. Empty list icon background color
87+
* $name 66. Icon background color
7688
* $type color
7789
*/
7890
$chat-messagelist-empty-icon-background-color: null !default;
7991

8092
/**
81-
* $name 63. Empty list message color
93+
* $name 67. Title color
8294
* $type color
8395
*/
8496
$chat-messagelist-empty-message-color: $base-text-color !default;
8597

8698
/**
87-
* $name 64. Empty list prompt color
99+
* $name 68. Subtitle color
88100
* $type color
89101
*/
90102
$chat-messagelist-empty-prompt-color: null !default;
91103

92104
/**
93-
* $name 70. Error color
105+
* $name 80. Text color
94106
* $type color
95107
*/
96-
$chat-alertlist-color: $base-invalid-color !default;
108+
$chat-typingindicator-color: null !default;
97109

98110
/**
99-
* $name 81. Typing indicator background color
111+
* $name 81. Background color
100112
* $type color
101113
*/
102114
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
103115

104116
/**
105-
* $name 82. Typing indicator central circle color
117+
* $name 82. Central circle color
106118
* $type color
107119
*/
108120
$chat-typingindicator-circle-bg-color-center: null !default;
109121

110122
/**
111-
* $name 83. Typing indicator outer circles color
123+
* $name 83. Outer circles color
112124
* $type color
113125
*/
114126
$chat-typingindicator-circle-bg-color: null !default;
115127

116128
@if $mode == "light" {
117-
$chat-information-color: darken($base-bg, 56.08) !default;
129+
$chat-information-author-name-color: darken($base-bg, 56.08) !default;
130+
$chat-information-timestamp-color: darken($base-bg, 56.08) !default;
131+
$chat-typingindicator-color: darken($base-bg, 56.08) !default;
118132

119133
$chat-messagelist-day-header-color: darken($base-bg, 56.08) !default;
120134
$chat-messagelist-empty-icon-color: lighten($base-icon-color, 32.16) !default;
@@ -138,7 +152,9 @@ $chat-typingindicator-circle-bg-color: null !default;
138152
@if $mode == "dark" {
139153
$chat-bubble-background-color-primary: darken(desaturate(adjust-hue($base-accent, 356.3), 14.7), 49.4) !default;
140154

141-
$chat-information-color: lighten($base-bg, 43.92) !default;
155+
$chat-information-author-name-color: lighten($base-bg, 43.92) !default;
156+
$chat-information-timestamp-color: lighten($base-bg, 43.92) !default;
157+
$chat-typingindicator-color: lighten($base-bg, 43.92) !default;
142158

143159
$chat-messagelist-day-header-color: lighten($base-bg, 43.92) !default;
144160
$chat-messagelist-empty-icon-color: darken($base-icon-color, 25.88) !default;
@@ -148,9 +164,3 @@ $chat-typingindicator-circle-bg-color: null !default;
148164
$chat-typingindicator-circle-bg-color: lighten($base-bg, 33.92) !default;
149165
$chat-typingindicator-circle-bg-color-center: lighten($base-bg, 43.92) !default;
150166
}
151-
152-
/**
153-
* $name 80. Typing indicator text color
154-
* $type color
155-
*/
156-
$chat-typingindicator-color: $chat-information-color !default;

packages/devextreme-scss/scss/widgets/fluent/chat/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
$chat-messagegroup-alignment-start-gap,
4848
$chat-messagegroup-padding,
4949
$chat-information-font-size,
50-
$chat-information-color,
50+
$chat-information-author-name-color,
51+
$chat-information-timestamp-color,
5152
$chat-information-gap,
5253
);
5354
@include chat-messagelist-empty(

0 commit comments

Comments
 (0)