Skip to content

Commit

Permalink
Chat: address remarks from PMs and techwriter after reviewing the The…
Browse files Browse the repository at this point in the history
…meBuilder integration (#28413)
  • Loading branch information
EugeniyKiyashko authored Nov 21, 2024
1 parent 4829481 commit 2c6b861
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
$messagegroup-start-gap,
$messagegroup-padding,
$information-font-size,
$information-color,
$information-author-name-color,
$information-timestamp-color,
$information-gap
) {
.dx-chat-messagegroup {
Expand All @@ -28,9 +29,13 @@
column-gap: $messagegroup-start-gap;
}

.dx-chat-messagegroup-time,
.dx-chat-messagegroup-time {
font-size: $information-font-size;
color: $information-timestamp-color;
}

.dx-chat-messagegroup-author-name {
font-size: $information-font-size;
color: $information-color;
color: $information-author-name-color;
}
}
62 changes: 36 additions & 26 deletions packages/devextreme-scss/scss/widgets/fluent/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,103 +18,117 @@ $chat-border-color: $base-border-color !default;
$chat-messagebox-border-color: $chat-border-color !default;

/**
* $name 30. Avatar text color
* $name 30. Text color
* $type color
*/
$chat-avatar-color: $base-text-color !default;

/**
* $name 31. Avatar background color
* $name 31. Background color
* $type color
*/
$chat-avatar-background-color: $base-active-bg !default;

/**
* $name 40. Bubble text color (your messages)
* $name 40. Text color (sent messages)
* $type color
*/
$chat-bubble-color-primary: $base-text-color !default;

/**
* $name 41. Bubble background color (your messages)
* $name 41. Background color (sent messages)
* $type color
*/
$chat-bubble-background-color-primary: null !default;

/**
* $name 42. Bubble text color (other messages)
* $name 42. Text color (received messages)
* $type color
*/
$chat-bubble-color-secondary: $base-text-color !default;

/**
* $name 43. Bubble background color (other messages)
* $name 43. Background color (received messages)
* $type color
*/
$chat-bubble-background-color-secondary: $base-border-color !default;

/**
* $name 50. Message caption color
* $name 50. User name color
* $type color
*/
$chat-information-color: null !default;
$chat-information-author-name-color: null !default;

/**
* $name 60. Day header color
* $name 51. Timestamp color
* $type color
*/
$chat-information-timestamp-color: null !default;

/**
* $name 52. Day header color
* $type color
*/
$chat-messagelist-day-header-color: null !default;

/**
* $name 61. Empty list icon color
* $name 55. Alert color
* $type color
*/
$chat-alertlist-color: $base-invalid-color !default;

/**
* $name 65. Icon color
* $type color
*/
$chat-messagelist-empty-icon-color: null !default;

/**
* $name 62. Empty list icon background color
* $name 66. Icon background color
* $type color
*/
$chat-messagelist-empty-icon-background-color: null !default;

/**
* $name 63. Empty list message color
* $name 67. Title color
* $type color
*/
$chat-messagelist-empty-message-color: $base-text-color !default;

/**
* $name 64. Empty list prompt color
* $name 68. Subtitle color
* $type color
*/
$chat-messagelist-empty-prompt-color: null !default;

/**
* $name 70. Error color
* $name 80. Text color
* $type color
*/
$chat-alertlist-color: $base-invalid-color !default;
$chat-typingindicator-color: null !default;

/**
* $name 81. Typing indicator background color
* $name 81. Background color
* $type color
*/
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;

/**
* $name 82. Typing indicator central circle color
* $name 82. Central circle color
* $type color
*/
$chat-typingindicator-circle-bg-color-center: null !default;

/**
* $name 83. Typing indicator outer circles color
* $name 83. Outer circles color
* $type color
*/
$chat-typingindicator-circle-bg-color: null !default;

@if $mode == "light" {
$chat-information-color: darken($base-bg, 56.08) !default;
$chat-information-author-name-color: darken($base-bg, 56.08) !default;
$chat-information-timestamp-color: darken($base-bg, 56.08) !default;
$chat-typingindicator-color: darken($base-bg, 56.08) !default;

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

$chat-information-color: lighten($base-bg, 43.92) !default;
$chat-information-author-name-color: lighten($base-bg, 43.92) !default;
$chat-information-timestamp-color: lighten($base-bg, 43.92) !default;
$chat-typingindicator-color: lighten($base-bg, 43.92) !default;

$chat-messagelist-day-header-color: lighten($base-bg, 43.92) !default;
$chat-messagelist-empty-icon-color: darken($base-icon-color, 25.88) !default;
Expand All @@ -148,9 +164,3 @@ $chat-typingindicator-circle-bg-color: null !default;
$chat-typingindicator-circle-bg-color: lighten($base-bg, 33.92) !default;
$chat-typingindicator-circle-bg-color-center: lighten($base-bg, 43.92) !default;
}

/**
* $name 80. Typing indicator text color
* $type color
*/
$chat-typingindicator-color: $chat-information-color !default;
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
$chat-messagegroup-alignment-start-gap,
$chat-messagegroup-padding,
$chat-information-font-size,
$chat-information-color,
$chat-information-author-name-color,
$chat-information-timestamp-color,
$chat-information-gap,
);
@include chat-messagelist-empty(
Expand Down
Loading

0 comments on commit 2c6b861

Please sign in to comment.