mirror of
https://github.com/RobTheFiveNine/flat-gamepad-icons.git
synced 2025-07-21 04:41:15 +02:00
Add keyboard icons
This commit is contained in:
11
LICENSE.dist.txt
Normal file
11
LICENSE.dist.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
This asset pack is made available under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.
|
||||
|
||||
This means you are free to:
|
||||
- Copy and redistribute the material in any medium or format and remix
|
||||
- Transform and build upon the material for any purpose, even commercially
|
||||
|
||||
You can find more information about the license online at https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
Attribution can be linked to the distribution page at https://robthefivenine.itch.io/flat-gamepad-icons or to my GitHub page at https://github.com/RobTheFiveNine
|
||||
|
||||
Additionally, if you do use it in any of your projects, I'd be interested to hear about it! If you'd like to let me know, please reach out via any of the methods listed on my GitHub profile.
|
10
build.sh
10
build.sh
@@ -1,6 +1,6 @@
|
||||
declare -a dpis=("50" "96" "150" "300")
|
||||
|
||||
ids=$(grep -oP 'id="(generic|xb|ps|switch)_.+?"' icons.svg | cut -d '"' -f 2)
|
||||
ids=$(grep -oP 'id="(generic|xb|ps|switch|kb)_.+?"' icons.svg | cut -d '"' -f 2)
|
||||
|
||||
mkdir -p build
|
||||
rm build/*
|
||||
@@ -12,3 +12,11 @@ do
|
||||
inkscape --export-id="$id" --export-id-only -d "$dpi" --export-type=png -o "build/${id}.${dpi}dpi.png" icons.svg 2> /dev/null
|
||||
done <<< "$ids"
|
||||
done
|
||||
|
||||
cp LICENSE.dist.txt build/LICENSE.txt
|
||||
|
||||
echo "Compressing to flat-gamepad-icons.zip..."
|
||||
zip -q -j -9 flat-gamepad-icons.zip build/*
|
||||
|
||||
|
||||
echo "Done."
|
||||
|
2098
icons.svg
2098
icons.svg
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 167 KiB |
6
test.sh
6
test.sh
@@ -2,11 +2,11 @@
|
||||
|
||||
echo -n "Checking file count... "
|
||||
file_count=$(ls -A build/ | wc -l)
|
||||
if [[ $file_count -eq 196 ]]; then
|
||||
if [[ $file_count -eq 425 ]]; then
|
||||
echo -e "\xE2\x9C\x94"
|
||||
else
|
||||
echo -e $"\u274c"
|
||||
echo " - Expected 196 files but found $file_count"
|
||||
echo " - Expected 425 files but found $file_count"
|
||||
fi
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ for size in 132x132 132x70 264x139 264x264 44x23 44x44 84x45 84x84; do
|
||||
done
|
||||
|
||||
|
||||
sizes=$(identify build/* | grep -oP "PNG.+?\+" | cut -d " " -f 2 | sort -u)
|
||||
sizes=$(identify build/*.png | grep -oP "PNG.+?\+" | cut -d " " -f 2 | sort -u)
|
||||
echo -n "Checking icon resolutions... "
|
||||
pass=1
|
||||
|
||||
|
Reference in New Issue
Block a user