Optimize logo for darkmode and add logos to assets folder#404
Optimize logo for darkmode and add logos to assets folder#404athre0z merged 2 commits intozyantific:masterfrom rich-ayr:logo-darkmode
Conversation
|
Awesome! This has always annoyed me and I didn't expect it to be possible to fix it. Thanks for taking care of this! :) |
|
Nice, didn't know about this new feature. If we ever add an organization README, let's remember to include our new Zyan logos the same way 🙂 |
|
This was already an SVG previously though. |
|
In this case, it's the new feature that's not supported. I might report that bug if I find out where 😋 |
Maybe it's an issue with relative paths or it just doesn't support the HTML tags/prefers-color-scheme yet. |
|
@flobernd I have made a branch with absolute paths on my fork: https://github.com/oberrich/zydis/blob/logo-darkmode-abspath/README.md |
|
The absolute path indeed seems to work! |

GitHub has recently added an option to control images based on light/dark color mode using the
<picture>element.This PR adds the relevant HTML to README and provides a dark/light mode logo under the
assets/imgfolder. Shipping the logos adds around 6KB to the repo, load time should stay the same as the logo is currently also served through githubusercontent.com