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

Commit d5b363e

Browse files
authored
Set color-scheme property in themes (#8547)
1 parent ed2ee70 commit d5b363e

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

res/themes/dark/css/_dark.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ $selected-color: $room-highlight-color;
269269
}
270270
// ********************
271271

272+
body {
273+
color-scheme: dark;
274+
}
275+
272276
// Nasty hacks to apply a filter to arbitrary monochrome artwork to make it
273277
// better match the theme. Typically applied to dark grey 'off' buttons or
274278
// light grey 'on' buttons.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ $location-live-secondary-color: #deddfd;
242242
text-decoration: none;
243243
}
244244

245+
body {
246+
color-scheme: dark;
247+
}
248+
245249
// Nasty hacks to apply a filter to arbitrary monochrome artwork to make it
246250
// better match the theme. Typically applied to dark grey 'off' buttons or
247251
// light grey 'on' buttons.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,10 @@ $location-live-secondary-color: #deddfd;
347347
text-decoration: none;
348348
}
349349

350+
body {
351+
color-scheme: light;
352+
}
353+
350354
// diff highlight colors
351355
.hljs-addition {
352356
background: #dfd;

res/themes/light/css/_light.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ $location-live-secondary-color: #deddfd;
378378
text-decoration: none;
379379
}
380380

381+
body {
382+
color-scheme: light;
383+
}
384+
381385
// ********************
382386

383387
// diff highlight colors

0 commit comments

Comments
 (0)