Skip to content

Commit d431d37

Browse files
feat(server): dark mode support for star history (immich-app#8259)
use theme sensitive star history graphic
1 parent 1694dd1 commit d431d37

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ If you feel like this is the right cause and the app is something you are seeing
131131

132132
## Star History
133133

134-
<a href="https://star-history.com/#immich-app/immich">
135-
<img src="https://api.star-history.com/svg?repos=immich-app/immich&type=Date" alt="Star History Chart" width="100%" />
134+
<a href="https://star-history.com/#immich-app/immich&Date">
135+
<picture>
136+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=immich-app/immich&type=Date&theme=dark" />
137+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=immich-app/immich&type=Date" />
138+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=immich-app/immich&type=Date" width="100%" />
139+
</picture>
136140
</a>

0 commit comments

Comments
 (0)