Skip to content

Invert black/white on transparent PNGs / SVGs in dark mode. #903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cnf opened this issue Apr 2, 2025 · 0 comments
Open

Invert black/white on transparent PNGs / SVGs in dark mode. #903

cnf opened this issue Apr 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@cnf
Copy link

cnf commented Apr 2, 2025

Is your feature request related to a problem? Please describe.
I have a lot of transparent images for categories and footprints. they are rather hard to see in dark mode.

example:
Image

Describe the solution you'd like
I was thinking adding a "monochrome" or "invertable" flag to the asset if it is transparent, and all assets that have that flag apply the css filter invert() if you are in dark mode.

https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/invert

Alternatively, apply a background with an edge fade in or something to transparent images, so you get a nice background, and not a square blocky image.

This is mostly cosmetic, but I live in dark mode most of the time, and it would make a big difference for usability for me.

Thanks!

@cnf cnf added the enhancement New feature or request label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant