-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add descriptive icons to the projects
Merges: #4
- Loading branch information
Showing
12 changed files
with
595 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.