mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-18 20:02:18 +03:00
9533c10137
The main button API only allows re-writing one color of the image. Since we need to rewrite multiple colors for the switch, I introduced a `image_batch` for buttons which lets you do all kinds of manual fanciness, and pass the result into the button API.
6 lines
220 B
XML
6 lines
220 B
XML
<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">
|
|
<rect fill="white" x="0" y="0" width="30" height="16" rx="8"></rect>
|
|
<circle fill="black" cx="7" cy="8" r="4"></circle>
|
|
</svg>
|
|
|