Skip to content

Commit

Permalink
Add descriptive icons to the projects
Browse files Browse the repository at this point in the history
Merges: #4
  • Loading branch information
chrysn authored Sep 12, 2024
2 parents a7441b9 + b471928 commit 3b313de
Show file tree
Hide file tree
Showing 12 changed files with 595 additions and 4 deletions.
Binary file added .icons/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/app.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-FileCopyrightText: delapouite
Original file from https://game-icons.net/1x1/delapouite/keyboard.html
Binary file added .icons/board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/board.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-FileCopyrightText: lorc
Original file from https://game-icons.net/1x1/lorc/circuitry.html
Binary file added .icons/module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/module.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-FileCopyrightText: lorc
Original file from https://game-icons.net/1x1/lorc/jigsaw-piece.html
55 changes: 55 additions & 0 deletions .icons/oshw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .icons/oshw.svg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-License-Identifier: CC-BY-SA-4.0
SPDX-FileCopyrightText: Macklin Chaffee
25 changes: 25 additions & 0 deletions .icons/rebuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: chrysn <[email protected]>
# /// script
# dependencies = ["cairosvg"]
# ///

import urllib.request
import cairosvg

game_icons = {
"board": ("lorc", "circuitry"),
"app": ("delapouite", "keyboard"),
"module": ("lorc", "jigsaw-piece"),
}

for (outname, (author, iconname)) in game_icons.items():
svg = urllib.request.urlopen(f"https://game-icons.net/icons/000000/ffffff/1x1/{author}/{iconname}.svg").read()
outname = outname + ".png"
cairosvg.svg2png(bytestring=svg, write_to=outname, output_width=20, output_height=20)
with open(outname + ".license", "w") as licensefile:
# String is split up because reuse tools would otherwise think this applies here
print("SPDX-License" + "-Identifier: CC-BY-3.0", file=licensefile)
print("SPDX-" + f"FileCopyrightText: {author}", file=licensefile)
print(f"Original file from https://game-icons.net/1x1/{author}/{iconname}.html", file=licensefile)
Loading

0 comments on commit 3b313de

Please sign in to comment.