edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBc439c14Tahinli25 days ago1006 commits
| 1 | #!/usr/bin/env python3 |
| 2 | """Fetch the Lucide icons edith uses (pinned tag) and bake them for gpui's svg(). |
| 3 | |
| 4 | gpui rasterises an SVG through resvg to an alpha mask and tints it with the |
| 5 | element's text colour, so the stroke is baked white. width/height are dropped |
| 6 | (the element sizes it; viewBox stays 24x24) and the stroke is thinned from 2 to |
| 7 | STROKE so a 16px icon is not heavy. |
| 8 | |
| 9 | Usage: scripts/prep_icons.py [name ...] (no names: re-fetch every icons/*.svg |
| 10 | that is already vendored, plus any new name given). Licence: assets/icons/LICENSE-lucide.txt. |
| 11 | """ |
| 12 | |
| 13 | |
| 14 | = |
| 15 | = |
| 16 | = .. / / |
| 17 | |
| 18 | |
| 19 | = |
| 20 | = |
| 21 | = |
| 22 | = |
| 23 | return |
| 24 | |
| 25 | |
| 26 | = or |
| 27 | |= |
| 28 | |
| 29 | = f |
| 30 | |
| 31 | |
| 32 | |
| 33 |