You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We assume the provided image is light mode image, so we use the src.light as actual src and ignore src.dark, and apply the filter: invert(1) in dark mode.
And vice versa for invert-on-light.
Our current behaviour is do-nothing.
Since currently we do not have enum support, we will do the validation in Rust.
triagedIssues that have been added to some project (-no:project doesn't work)
1 participant
Converted from issue
This discussion was converted from issue #187 on July 29, 2022 08:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since CSS in modern browsers can auto invert images we can use that for better dark mode support.
Since it does not make sense to invert all images, it has to be an opt in behaviour.
Or better:
We assume the provided image is light mode image, so we use the
src.light
as actual src and ignoresrc.dark
, and apply thefilter: invert(1)
in dark mode.And vice versa for
invert-on-light
.Our current behaviour is
do-nothing
.Since currently we do not have
enum
support, we will do the validation in Rust.Beta Was this translation helpful? Give feedback.
All reactions