Skip to content

Commit

Permalink
[merge] Fix launcher icons with new store variants
Browse files Browse the repository at this point in the history
Change-Id: Icacfe93802f86e3ce159fad50ee2ed11eca88a5b
  • Loading branch information
SpiritCroc committed Jan 31, 2024
1 parent dde64d0 commit 034f93b
Show file tree
Hide file tree
Showing 31 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphics/icon_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export_files_custom() {
dpi=48 # 96/2

file="$mydir/ic_launcher_foreground.svg"
for variant in scBetaDebug scDefaultDebug scInternalRelease scBetaRelease scDefaultRelease; do
for variant in fdroidScBetaDebug fdroidScDefaultDebug fdroidScInternalRelease fdroidScBetaRelease fdroidScDefaultRelease; do
base_folder="$mydir/../app/src/$variant/res/mipmap"
export_files
done
Expand All @@ -74,7 +74,7 @@ inkscape "$file" --export-filename="$store_icon.tmp.png" --export-area="$non_ada
# Read gradient from actual vector drawable
get_bg_prop() {
local prop="$1"
cat "$mydir/../app/src/scDefaultRelease/res/drawable/ic_launcher_background.xml"|grep "$prop"=|sed 's|.*'"$prop"'=\"\([^\"]*\)".*|\1|'
cat "$mydir/../app/src/fdroidScDefaultRelease/res/drawable/ic_launcher_background.xml"|grep "$prop"=|sed 's|.*'"$prop"'=\"\([^\"]*\)".*|\1|'
}
bg_angle=`get_bg_prop angle`
bg_startColor=`get_bg_prop startColor`
Expand Down

0 comments on commit 034f93b

Please sign in to comment.