Option to do a hue-preserving invert invert(1) hue-rotate(180deg)
on images in dark mode
#883
Unanswered
Artoria2e5
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pages like https://manual.gromacs.org/current/reference-manual/algorithms/free-energy-calculations.html use a black-on-transparent diagram. This is obviously bad and is technically covered by "different images for dark/light mode", but I betcha most people will not want to find extra time to do a re-render for those cases (I mean, MathJax inverts out of the box!). Instead, I propose adding a
:class:
calleddark-invert
, which will do a hue-preserving1 invert on dark mode:There's also a possibility for
light-invert
but I think it would be used less often. It could be added for completeness though.1 Technically it does not always preserve hue as
filter
clips on rgb values naively. Still it's close enough for usual diagram label colors: red becomes pinkish, etc.Beta Was this translation helpful? Give feedback.
All reactions