readme: Add support for light/dark modes in the logo
Use the mechanism described here: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to to provide different logos for light and dark mode, so that the "Zephyr" text is clearly visible in both. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
1374415a2c
commit
3fea29d7c5
@ -2,7 +2,11 @@
|
||||
|
||||
<a href="https://www.zephyrproject.org">
|
||||
<p align="center">
|
||||
<img src="doc/_static/images/logo-readme.svg">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="doc/_static/images/logo-readme-dark.svg">
|
||||
<source media="(prefers-color-scheme: light)" srcset="doc/_static/images/logo-readme-light.svg">
|
||||
<img src="doc/_static/images/logo-readme-light.svg">
|
||||
</picture>
|
||||
</p>
|
||||
</a>
|
||||
|
||||
|
||||
BIN
doc/_static/images/logo-readme-dark.svg
generated
vendored
Normal file
BIN
doc/_static/images/logo-readme-dark.svg
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
0
doc/_static/images/logo-readme.svg → doc/_static/images/logo-readme-light.svg
generated
vendored
0
doc/_static/images/logo-readme.svg → doc/_static/images/logo-readme-light.svg
generated
vendored
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in New Issue
Block a user