Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Builder: Add chat colors #28311

Merged
92 changes: 88 additions & 4 deletions packages/devextreme-scss/scss/widgets/fluent/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,107 @@

// adduse

/**
* $name 10. Background color
* $type color
*/
$chat-background-color: $base-bg !default;

/**
* $name 20. Border color
* $type color
*/
$chat-border-color: $base-border-color !default;
$chat-messagebox-border-color: $base-border-color !default;
$chat-messagebox-border-color: $chat-border-color !default;

/**
* $name 30. Avatar color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-avatar-color: $base-text-color !default;

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

/**
* $name 40. Bubble color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-bubble-color-primary: $base-text-color !default;

/**
* $name 41. Bubble background color primary
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-bubble-background-color-primary: null !default;

/**
* $name 42. Bubble background color secondary
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-bubble-background-color-secondary: $base-border-color !default;

/**
* $name 50. Information color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-information-color: null !default;

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

/**
* $name 61. Empty list icon color
* $type color
*/
$chat-messagelist-empty-icon-color: null !default;

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

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

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

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

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

/**
* $name 82. Typing indicator circle background color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-typingindicator-circle-bg-color: null !default;

/**
* $name 83. Typing indicator center circle background color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-typingindicator-circle-bg-color-center: null !default;

@if $mode == "light" {
Expand All @@ -35,7 +115,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-icon-background-color: darken($base-bg, 3.92) !default;
$chat-messagelist-empty-prompt-color: darken($base-label-color, 5.88) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-circle-bg-color: darken($base-bg, 29.16) !default;
$chat-typingindicator-circle-bg-color-center: darken($base-bg, 56.08) !default;

Expand All @@ -60,7 +139,12 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-icon-background-color: lighten($base-bg, 7.84) !default;
$chat-messagelist-empty-prompt-color: lighten($base-label-color, 7.84) !default;

$chat-typingindicator-color: $chat-information-color !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 color
Strider2342 marked this conversation as resolved.
Show resolved Hide resolved
* $type color
*/
$chat-typingindicator-color: $chat-information-color !default;
108 changes: 89 additions & 19 deletions packages/devextreme-scss/scss/widgets/generic/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,101 @@

// adduse

/**
* $name 10. Background color
* $type color
*/
$chat-background-color: $base-bg !default;

/**
* $name 20. Border color
* $type color
*/
$chat-border-color: $base-border-color !default;
$chat-messagebox-border-color: $chat-border-color !default;

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

/**
* $name 31. Avatar background color
* $type color
*/
$chat-avatar-background-color: $base-border-color !default;
$chat-messagebox-border-color: $base-border-color !default;

/**
* $name 40. Bubble color
* $type color
*/
$chat-bubble-color-primary: null !default;

/**
* $name 41. Bubble background color primary
* $type color
*/
$chat-bubble-background-color-primary: null !default;

/**
* $name 42. Bubble background color secondary
* $type color
*/
$chat-bubble-background-color-secondary: null !default;

/**
* $name 50. Information color
* $type color
*/
$chat-information-color: null !default;

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

/**
* $name 61. Empty list icon color
* $type color
*/
$chat-messagelist-empty-icon-color: null !default;

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

/**
* $name 63. Empty list message color
* $type color
*/
$chat-messagelist-empty-message-color: null !default;

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

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

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

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

@if $color == "light" {
Expand All @@ -40,8 +114,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: darken($base-text-color, 6.67) !default;
$chat-messagelist-empty-prompt-color: lighten($base-label-color, 38.43) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: darken($base-bg, 31.57) !default;
$chat-typingindicator-circle-bg-color-center: darken($base-bg, 46.57) !default;
}
Expand All @@ -59,8 +131,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: lighten($base-text-color, 12.94) !default;
$chat-messagelist-empty-prompt-color: darken($base-label-color, 38.04) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: lighten($base-bg, 32.55) !default;
$chat-typingindicator-circle-bg-color-center: lighten($base-bg, 41.07) !default;
}
Expand All @@ -78,8 +148,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: $base-text-color !default;
$chat-messagelist-empty-prompt-color: $base-label-color !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: darken($base-bg, 31.57) !default;
$chat-typingindicator-circle-bg-color-center: darken($base-bg, 46.57) !default;
}
Expand All @@ -97,8 +165,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: $base-text-color !default;
$chat-messagelist-empty-prompt-color: $base-text-color !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: $base-inverted-bg !default;
$chat-typingindicator-circle-bg-color-center: $base-inverted-bg !default;
}
Expand All @@ -116,8 +182,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: $base-text-color !default;
$chat-messagelist-empty-prompt-color: $base-label-color !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: lighten($base-bg, 32.55) !default;
$chat-typingindicator-circle-bg-color-center: lighten($base-bg, 41.07) !default;
}
Expand All @@ -135,8 +199,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: lighten($base-text-color, 12.94) !default;
$chat-messagelist-empty-prompt-color: darken($base-label-color, 38.04) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: lighten($base-bg, 32.55) !default;
$chat-typingindicator-circle-bg-color-center: lighten($base-bg, 41.07) !default;
}
Expand All @@ -153,8 +215,6 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: $base-text-color !default;
$chat-messagelist-empty-prompt-color: $base-label-color !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: darken($base-bg, 31.57) !default;
$chat-typingindicator-circle-bg-color-center: darken($base-bg, 46.57) !default;
}
Expand All @@ -172,8 +232,18 @@ $chat-typingindicator-circle-bg-color-center: null !default;
$chat-messagelist-empty-message-color: $base-text-color !default;
$chat-messagelist-empty-prompt-color: $base-label-color !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: darken($base-bg, 31.57) !default;
$chat-typingindicator-circle-bg-color-center: darken($base-bg, 46.57) !default;
}

/**
* $name 80. Typing indicator color
* $type color
*/
$chat-typingindicator-color: $chat-information-color !default;

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