Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1a1a76e

Browse files
author
James Salter
authored
Merge pull request #6606 from SimonBrandner/fix/toast-colors
Fix toast colors
2 parents 772b8fb + 7ce88c9 commit 1a1a76e

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

res/css/structures/_ToastContainer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ limitations under the License.
2828
margin: 0 4px;
2929
grid-row: 2 / 4;
3030
grid-column: 1;
31-
background-color: $toast-bg-color;
31+
background-color: $system;
3232
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
3333
border-radius: 8px;
3434
}
@@ -37,7 +37,7 @@ limitations under the License.
3737
grid-row: 1 / 3;
3838
grid-column: 1;
3939
color: $primary-fg-color;
40-
background-color: $toast-bg-color;
40+
background-color: $system;
4141
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
4242
border-radius: 8px;
4343
overflow: hidden;

res/css/views/voip/_CallView.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ limitations under the License.
3939
.mx_CallView_pip {
4040
width: 320px;
4141
padding-bottom: 8px;
42-
background-color: $toast-bg-color;
42+
background-color: $system;
4343
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.20);
4444
border-radius: 8px;
4545

res/themes/dark/css/_dark.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ $secondary-content: #A9B2BC;
77
$tertiary-content: #8E99A4;
88
$quaternary-content: #6F7882;
99
$quinary-content: #394049;
10-
$system-dark: #21262C;
10+
$system: #21262C;
1111
$background: #15191E;
12-
$panels: rgba($system-dark, 0.9);
12+
$panels: rgba($system, 0.9);
1313
$panel-base: #8D97A5; // This color is not intended for use in the app
1414
$panel-selected: rgba($panel-base, 0.3);
1515
$panel-hover: rgba($panel-base, 0.1);
@@ -67,7 +67,7 @@ $inverted-bg-color: $base-color;
6767
$selected-color: $room-highlight-color;
6868

6969
// selected for hoverover & selected event tiles
70-
$event-selected-color: $system-dark;
70+
$event-selected-color: $system;
7171

7272
// used for the hairline dividers in RoomView
7373
$primary-hairline-color: transparent;
@@ -111,7 +111,7 @@ $lightbox-background-bg-color: #000;
111111
$lightbox-background-bg-opacity: 0.85;
112112

113113
$settings-grey-fg-color: #a2a2a2;
114-
$settings-profile-placeholder-bg-color: $system-dark;
114+
$settings-profile-placeholder-bg-color: $system;
115115
$settings-profile-overlay-placeholder-fg-color: #454545;
116116
$settings-profile-button-bg-color: #e7e7e7;
117117
$settings-profile-button-fg-color: $settings-profile-overlay-placeholder-fg-color;
@@ -132,8 +132,6 @@ $eventtile-meta-color: $roomtopic-color;
132132
$header-divider-color: $header-panel-text-primary-color;
133133
$composer-e2e-icon-color: $header-panel-text-primary-color;
134134

135-
$toast-bg-color: $quinary-content;
136-
137135
// ********************
138136

139137
$theme-button-bg-color: #e3e8f0;
@@ -194,7 +192,7 @@ $button-link-bg-color: transparent;
194192
$togglesw-off-color: $room-highlight-color;
195193

196194
$progressbar-fg-color: $accent-color;
197-
$progressbar-bg-color: $system-dark;
195+
$progressbar-bg-color: $system;
198196

199197
$visual-bell-bg-color: #800;
200198

@@ -229,7 +227,7 @@ $user-tile-hover-bg-color: $header-panel-bg-color;
229227
$message-body-panel-fg-color: $secondary-fg-color;
230228
$message-body-panel-bg-color: $quinary-content;
231229
$message-body-panel-icon-fg-color: $secondary-fg-color;
232-
$message-body-panel-icon-bg-color: $system-dark; // "System Dark"
230+
$message-body-panel-icon-bg-color: $system; // "System Dark"
233231

234232
$voice-record-stop-border-color: $quaternary-fg-color;
235233
$voice-record-waveform-incomplete-fg-color: $quaternary-fg-color;

res/themes/legacy-dark/css/_legacy-dark.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
2+
$system: #21262C;
3+
14
// unified palette
25
// try to use these colors when possible
36
$bg-color: #181b21;
@@ -111,9 +114,6 @@ $eventtile-meta-color: $roomtopic-color;
111114
$header-divider-color: $header-panel-text-primary-color;
112115
$composer-e2e-icon-color: $header-panel-text-primary-color;
113116

114-
$quinary-content-color: #394049;
115-
$toast-bg-color: $quinary-content-color;
116-
117117
// ********************
118118

119119
$theme-button-bg-color: #e3e8f0;

res/themes/legacy-light/css/_legacy-light.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $font-family: 'Nunito', 'Twemoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Arial
1313
$monospace-font-family: 'Inconsolata', 'Twemoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Courier', monospace, 'Noto Color Emoji';
1414

1515
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=557%3A0
16-
$system-light: #F4F6FA;
16+
$system: #F4F6FA;
1717

1818
// unified palette
1919
// try to use these colors when possible
@@ -181,8 +181,7 @@ $eventtile-meta-color: $roomtopic-color;
181181
$composer-e2e-icon-color: #91a1c0;
182182
$header-divider-color: #91a1c0;
183183

184-
$toast-bg-color: $system-light;
185-
$voipcall-plinth-color: $system-light;
184+
$voipcall-plinth-color: $system;
186185

187186
// ********************
188187

@@ -334,7 +333,7 @@ $user-tile-hover-bg-color: $header-panel-bg-color;
334333
$message-body-panel-fg-color: $secondary-fg-color;
335334
$message-body-panel-bg-color: #E3E8F0;
336335
$message-body-panel-icon-fg-color: $secondary-fg-color;
337-
$message-body-panel-icon-bg-color: $system-light;
336+
$message-body-panel-icon-bg-color: $system;
338337

339338
// See non-legacy _light for variable information
340339
$voice-record-stop-symbol-color: #ff4b55;
@@ -352,7 +351,7 @@ $composer-shadow-color: tranparent;
352351

353352
// Bubble tiles
354353
$eventbubble-self-bg: #F0FBF8;
355-
$eventbubble-others-bg: $system-light;
354+
$eventbubble-others-bg: $system;
356355
$eventbubble-bg-hover: #FAFBFD;
357356
$eventbubble-avatar-outline: #fff;
358357
$eventbubble-reply-color: #C1C6CD;

res/themes/light/css/_light.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ $secondary-content: #737D8C;
2121
$tertiary-content: #8D97A5;
2222
$quaternary-content: #c1c6cd;
2323
$quinary-content: #E3E8F0;
24-
$system-light: #F4F6FA;
24+
$system: #F4F6FA;
2525
$background: #ffffff;
26-
$panels: rgba($system-light, 0.9);
26+
$panels: rgba($system, 0.9);
2727
$panel-selected: rgba($tertiary-content, 0.3);
2828
$panel-hover: rgba($tertiary-content, 0.1);
2929
$panel-actions: rgba($tertiary-content, 0.2);
@@ -157,7 +157,7 @@ $blockquote-bar-color: #ddd;
157157
$blockquote-fg-color: #777;
158158

159159
$settings-grey-fg-color: #a2a2a2;
160-
$settings-profile-placeholder-bg-color: $system-light;
160+
$settings-profile-placeholder-bg-color: $system;
161161
$settings-profile-overlay-placeholder-fg-color: #2e2f32;
162162
$settings-profile-button-bg-color: #e7e7e7;
163163
$settings-profile-button-fg-color: $settings-profile-overlay-placeholder-fg-color;
@@ -186,8 +186,7 @@ $eventtile-meta-color: $roomtopic-color;
186186
$composer-e2e-icon-color: #91A1C0;
187187
$header-divider-color: #91A1C0;
188188

189-
$toast-bg-color: $system-light;
190-
$voipcall-plinth-color: $system-light;
189+
$voipcall-plinth-color: $system;
191190

192191
// ********************
193192

@@ -346,7 +345,7 @@ $user-tile-hover-bg-color: $header-panel-bg-color;
346345
$message-body-panel-fg-color: $secondary-fg-color;
347346
$message-body-panel-bg-color: $quinary-content;
348347
$message-body-panel-icon-fg-color: $secondary-fg-color;
349-
$message-body-panel-icon-bg-color: $system-light;
348+
$message-body-panel-icon-bg-color: $system;
350349

351350
// These two don't change between themes. They are the $warning-color, but we don't
352351
// want custom themes to affect them by accident.
@@ -370,7 +369,7 @@ $composer-shadow-color: rgba(0, 0, 0, 0.04);
370369

371370
// Bubble tiles
372371
$eventbubble-self-bg: #F0FBF8;
373-
$eventbubble-others-bg: $system-light;
372+
$eventbubble-others-bg: $system;
374373
$eventbubble-bg-hover: #FAFBFD;
375374
$eventbubble-avatar-outline: $primary-bg-color;
376375
$eventbubble-reply-color: $quaternary-content;

0 commit comments

Comments
 (0)