Skip to content

Commit 0997690

Browse files
authored
refactor: correct colors in dark mode [ACC-61] (#13675)
* refactor: correct colors in dark mode acc-61 * remove fade on css var * add css variable to mixins
1 parent 1c9947b commit 0997690

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/style/common/mixins.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
.setVariables(foreground background);
4242
.setColorFade(foreground, @foreground);
4343
.setColorFade(background, @background);
44-
.setVariables(app-bg sidebar-bg sidebar-border-color main-color border-color app-bg-secondary conversation-list-bg-opacity);
44+
.setVariables(app-bg sidebar-bg input-bar-bg sidebar-border-color main-color border-color app-bg-secondary conversation-list-bg-opacity);
4545
.setVariables(group-video-bg group-video-tile-bg inactive-call-button-bg inactive-call-button-border inactive-call-button-hover-bg inactive-call-button-hover-border disabled-call-button-bg disabled-call-button-border disabled-call-button-svg button-group-left-hover button-group-right-hover toggle-button-unselected-hover-border toggle-button-unselected-hover-bg);
4646
.setVariables(modal-bg modal-border-color);
4747
.setVariables(preference-account-input-bg);

src/style/content/conversation/input-bar.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
z-index: 10;
3030
display: flex;
3131
padding-right: 8px;
32-
background-color: var(--app-bg-secondary);
32+
background-color: var(--input-bar-bg);
3333

3434
&--editing {
3535
background-color: var(--text-input-editing);

src/style/foundation/themes.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ body.theme-default {
3737
@conversation-list-bg-opacity: fade(#000, 64%);
3838
@sidebar-box-shadow: #eee;
3939
@sidebar-box-shadow-lg: rgba(0, 0, 0, 0.12);
40+
@input-bar-bg: var(--white);
4041

4142
// ----------------------------------------------------------------------------
4243
// Calling
@@ -130,6 +131,7 @@ body.theme-dark {
130131
@border-color: var(--gray-90);
131132
@app-bg-secondary: var(--black);
132133
@conversation-list-bg-opacity: fade(#000, 78%);
134+
@input-bar-bg: var(--gray-100);
133135

134136
// ----------------------------------------------------------------------------
135137
// Calling

src/style/foundation/warnings.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
width: 100%;
4444
justify-content: center;
4545
background-color: var(--accent-color);
46-
color: #fff;
46+
color: var(--app-bg-secondary);
4747

4848
a {
49-
color: @w-white;
49+
color: var(--app-bg-secondary);
5050
&:hover,
5151
&:focus {
52-
color: fade(@w-white, 80%);
52+
color: var(--app-bg);
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)