mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Specified logo source for dark mode
It is now possible to specify different sources for images based on the user's theme preference. The black "Swift" text was a little unreadable on grey background, so I've adjusted it to display the white logo in dark mode.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<img src="https://swift.org/assets/images/swift.svg" alt="Swift logo" height="70" >
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://www.swift.org/assets/images/swift~dark.svg">
|
||||
<img src="https://swift.org/assets/images/swift.svg" alt="Swift logo" height="70" >
|
||||
</picture>
|
||||
|
||||
# Swift Programming Language
|
||||
|
||||
|
||||
Reference in New Issue
Block a user