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

Set color-scheme property in themes #8547

Merged
merged 1 commit into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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