Skip to content

Commit

Permalink
issue #734 Add script for automatic generating all the icons (#925)
Browse files Browse the repository at this point in the history
* Add script to generate icons

* Use rsvg-convert instead

* move SVG icons to asset-sources/icons
  • Loading branch information
Limon Monte authored Nov 5, 2021
1 parent f8333c9 commit e34c595
Show file tree
Hide file tree
Showing 61 changed files with 87 additions and 0 deletions.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Debug.appiconset/87.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/167.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/180.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/20.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/29.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/40.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/50.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/57.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/58.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/60.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/72.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/76.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/80.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon-Enterprise.appiconset/87.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/100.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/1024.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/114.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/120.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/144.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/152.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/167.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/180.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/20.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/29.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/40.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/50.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/57.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/58.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/60.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/72.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/76.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/80.png
Binary file modified FlowCrypt/Assets.xcassets/AppIcon.appiconset/87.png
16 changes: 16 additions & 0 deletions Scripts/generate-icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -euxo pipefail # debug + fail when any command fails

sizes=(20 29 40 50 57 58 60 72 76 80 87 100 114 120 144 152 167 180 1024)

for size in "${sizes[@]}"
do
# Default
rsvg-convert -w $size -h $size --background-color white ./asset-sources/icons/flowcrypt-ios-svg.svg > ./FlowCrypt/Assets.xcassets/Appicon.appiconset/$size.png
# Enterprise
rsvg-convert -w $size -h $size --background-color white ./asset-sources/icons/flowcrypt-ios-enterprise-svg.svg > ./FlowCrypt/Assets.xcassets/Appicon-Enterprise.appiconset/$size.png
# Debug
rsvg-convert -w $size -h $size --background-color white ./asset-sources/icons/flowcrypt-ios-debug-svg.svg > ./FlowCrypt/Assets.xcassets/Appicon-Debug.appiconset/$size.png
done

24 changes: 24 additions & 0 deletions asset-sources/icons/flowcrypt-ios-debug-svg.svg
24 changes: 24 additions & 0 deletions asset-sources/icons/flowcrypt-ios-enterprise-svg.svg
23 changes: 23 additions & 0 deletions asset-sources/icons/flowcrypt-ios-svg.svg

0 comments on commit e34c595

Please sign in to comment.