We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d3b3d commit b4a907cCopy full SHA for b4a907c
Highlight-Unfolded-Comments/StackHighlightUnfoldedComments.user.js
@@ -57,7 +57,9 @@ const observeContainer = (commentsContainer) => {
57
}
58
for (const comment of newComments) {
59
window.setTimeout(() => {
60
- const highlightColor = document.body.matches('.theme-dark')
+ const highlightColor =
61
+ document.body.matches('.theme-system') && window.matchMedia('(prefers-color-scheme: dark)').matches ||
62
+ document.body.matches('.theme-dark')
63
? '#403d33' // Dark brown, close to default dark background
64
: '#fff2e0'; // Pale yellow, close to default light background
65
// eslint-disable-next-line no-param-reassign
0 commit comments