Skip to content

Commit

Permalink
readme: make README logo dark-mode aware
Browse files Browse the repository at this point in the history
Use an SVG based logo with embedded style that toggles title color using
media queries. The SVG logo is not exactly the same as the previous one
as I only had this version in SVG (taken from docs actually).

Note that we cannot use the method described in
https://github.blog/changelog/
2021-11-24-specify-theme-context-for-images-in-markdown/ because the
README is written in rst, not Markdown.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed Feb 15, 2022
1 parent 73d8a8d commit 5838c4d
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<a href="https://www.zephyrproject.org">
<p align="center">
<img src="doc/_static/images/logo-readme.png">
<img src="doc/_static/images/logo-readme.svg">
</p>
</a>

Expand Down
Binary file removed doc/_static/images/logo-readme.png
Binary file not shown.
234 changes: 234 additions & 0 deletions doc/_static/images/logo-readme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5838c4d

Please sign in to comment.