Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyKiyashko committed Nov 7, 2024
1 parent 942e257 commit 8d531bc
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 63 deletions.
28 changes: 20 additions & 8 deletions packages/devextreme-scss/scss/widgets/fluent/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ $chat-background-color: $base-bg !default;
* $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
* $type color
*/
$chat-avatar-color: $base-text-color !default;

/**
* $name 31. Avatar background color
* $type color
Expand All @@ -33,11 +34,13 @@ $chat-avatar-background-color: $base-active-bg !default;
* $type color
*/
$chat-bubble-color-primary: $base-text-color !default;

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

/**
* $name 42. Bubble background color secondary
* $type color
Expand All @@ -55,21 +58,25 @@ $chat-information-color: null !default;
* $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
Expand All @@ -82,21 +89,22 @@ $chat-messagelist-empty-prompt-color: null !default;
*/
$chat-alertlist-color: $base-invalid-color !default;

/**
* $name 80. Typing indicator color
* $type color
*/
$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
* $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 $mode == "light" {
Expand All @@ -107,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 @@ -132,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
* $type color
*/
$chat-typingindicator-color: $chat-information-color !default;
51 changes: 24 additions & 27 deletions packages/devextreme-scss/scss/widgets/generic/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,32 @@ $chat-background-color: $base-bg !default;
* $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
Expand All @@ -56,21 +58,25 @@ $chat-information-color: null !default;
* $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
Expand All @@ -84,20 +90,15 @@ $chat-messagelist-empty-prompt-color: null !default;
$chat-alertlist-color: $base-invalid-color !default;

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

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

@if $color == "light" {
Expand All @@ -113,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 @@ -132,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 @@ -151,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 @@ -170,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 @@ -189,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 @@ -208,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 @@ -226,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 @@ -245,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;
50 changes: 22 additions & 28 deletions packages/devextreme-scss/scss/widgets/material/chat/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ $chat-background-color: $base-bg !default;
* $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
* $type color
*/
$chat-avatar-color: $base-text-color !default;

/**
* $name 31. Avatar background color
* $type color
Expand All @@ -32,43 +33,49 @@ $chat-avatar-background-color: $base-border-color !default;
* $type color
*/
$chat-bubble-color-primary: $base-text-color !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;
$chat-bubble-background-color-secondary: rgba($base-inverted-bg, 0.08) !default;

/**
* $name 50. Information color
* $type color
*/
$chat-information-color: null !default;
$chat-information-color: rgba($base-inverted-bg, 0.6) !default;

/**
* $name 60. Day header color
* $type color
*/
$chat-messagelist-day-header-color: null !default;
$chat-messagelist-day-header-color: rgba($base-inverted-bg, 0.6) !default;

/**
* $name 61. Empty list icon color
* $type color
*/
$chat-messagelist-empty-icon-color: rgba($base-inverted-bg, 0.38) !default;

/**
* $name 62. Empty list icon background color
* $type color
*/
$chat-messagelist-empty-icon-background-color: rgba($base-inverted-bg, 0.08) !default;

/**
* $name 63. Empty list message color
* $type color
*/
$chat-messagelist-empty-message-color: rgba($base-inverted-bg, 0.87) !default;

/**
* $name 64. Empty list prompt color
* $type color
Expand All @@ -85,43 +92,30 @@ $chat-alertlist-color: $base-invalid-color !default;
* $name 80. Typing indicator color
* $type color
*/
$chat-typingindicator-color: null !default;
$chat-typingindicator-color: $chat-information-color !default;

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

/**
* $name 82. Typing indicator circle background color
* $type color
*/
$chat-typingindicator-circle-bg-color: null !default;
$chat-typingindicator-circle-bg-color-center: null !default;
$chat-typingindicator-circle-bg-color: rgba($base-inverted-bg, 0.4) !default;

/**
* $name 83. Typing indicator center circle background color
* $type color
*/
$chat-typingindicator-circle-bg-color-center: rgba($base-inverted-bg, 0.6) !default;

@if $mode == "light" {
$chat-bubble-background-color-primary: rgba($base-accent, 0.08) !default;
$chat-bubble-background-color-secondary: rgba($base-inverted-bg, 0.08) !default;

$chat-information-color: rgba(darken($base-bg, 100.00), 0.6) !default;

$chat-messagelist-day-header-color: rgba(darken($base-bg, 100.00), 0.6) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: rgba(darken($base-bg, 100.00), 0.4) !default;
$chat-typingindicator-circle-bg-color-center: rgba(darken($base-bg, 100.00), 0.6) !default;
}

@else if $mode == "dark" {
$chat-bubble-background-color-primary: rgba(lighten($base-accent, 19.22), 0.08) !default;
$chat-bubble-background-color-secondary: rgba(lighten(desaturate(adjust-hue($base-bg, -240), 8.47), 76.86), 0.08) !default;

$chat-information-color: rgba(lighten(desaturate(adjust-hue($base-bg, -240), 8.47), 76.86), 0.6) !default;

$chat-messagelist-day-header-color: rgba(lighten(desaturate(adjust-hue($base-bg, -240), 8.47), 76.86), 0.6) !default;

$chat-typingindicator-color: $chat-information-color !default;
$chat-typingindicator-bubble-bg-color: $chat-bubble-background-color-secondary !default;
$chat-typingindicator-circle-bg-color: rgba(lighten(desaturate(adjust-hue($base-bg, -240), 8.47), 76.86), 0.4) !default;
$chat-typingindicator-circle-bg-color-center: rgba(lighten(desaturate(adjust-hue($base-bg, -240), 8.47), 76.86), 0.6) !default;
}

0 comments on commit 8d531bc

Please sign in to comment.