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

Commit

Permalink
Set color-scheme property in themes (#8547)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored May 10, 2022
1 parent ed2ee70 commit d5b363e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/themes/dark/css/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ $selected-color: $room-highlight-color;
}
// ********************

body {
color-scheme: dark;
}

// Nasty hacks to apply a filter to arbitrary monochrome artwork to make it
// better match the theme. Typically applied to dark grey 'off' buttons or
// light grey 'on' buttons.
Expand Down
4 changes: 4 additions & 0 deletions res/themes/legacy-dark/css/_legacy-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ $location-live-secondary-color: #deddfd;
text-decoration: none;
}

body {
color-scheme: dark;
}

// Nasty hacks to apply a filter to arbitrary monochrome artwork to make it
// better match the theme. Typically applied to dark grey 'off' buttons or
// light grey 'on' buttons.
Expand Down
4 changes: 4 additions & 0 deletions res/themes/legacy-light/css/_legacy-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ $location-live-secondary-color: #deddfd;
text-decoration: none;
}

body {
color-scheme: light;
}

// diff highlight colors
.hljs-addition {
background: #dfd;
Expand Down
4 changes: 4 additions & 0 deletions res/themes/light/css/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ $location-live-secondary-color: #deddfd;
text-decoration: none;
}

body {
color-scheme: light;
}

// ********************

// diff highlight colors
Expand Down

0 comments on commit d5b363e

Please sign in to comment.