diff --git a/.icons/app.png b/.icons/app.png new file mode 100644 index 0000000..96ed846 Binary files /dev/null and b/.icons/app.png differ diff --git a/.icons/app.png.license b/.icons/app.png.license new file mode 100644 index 0000000..a38f152 --- /dev/null +++ b/.icons/app.png.license @@ -0,0 +1,3 @@ +SPDX-License-Identifier: CC-BY-3.0 +SPDX-License-CopyrightText: delapouite +Original file from https://game-icons.net/1x1/delapouite/keyboard.html diff --git a/.icons/board.png b/.icons/board.png new file mode 100644 index 0000000..214013e Binary files /dev/null and b/.icons/board.png differ diff --git a/.icons/board.png.license b/.icons/board.png.license new file mode 100644 index 0000000..9eeedc3 --- /dev/null +++ b/.icons/board.png.license @@ -0,0 +1,3 @@ +SPDX-License-Identifier: CC-BY-3.0 +SPDX-License-CopyrightText: lorc +Original file from https://game-icons.net/1x1/lorc/circuitry.html diff --git a/.icons/rebuild.py b/.icons/rebuild.py new file mode 100644 index 0000000..58b6abf --- /dev/null +++ b/.icons/rebuild.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: chrysn +# /// script +# dependencies = ["cairosvg"] +# /// + +import urllib.request +import cairosvg + +game_icons = { + "board": ("lorc", "circuitry"), + "app": ("delapouite", "keyboard"), + } + +for (outname, (author, iconname)) in game_icons.items(): + svg = urllib.request.urlopen(f"https://game-icons.net/icons/ffffff/000000/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: + print("SPDX-License-Identifier: CC-BY-3.0", file=licensefile) + print(f"SPDX-License-CopyrightText: {author}", file=licensefile) + print(f"Original file from https://game-icons.net/1x1/{author}/{iconname}.html", file=licensefile)