Skip to content

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

Open
@cnf

Description

@cnf

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions