diff --git a/android/app/src/main/res/drawable-land-hdpi/splash.png b/android/app/src/main/res/drawable-land-hdpi/splash.png index e31573b4..fec77629 100644 Binary files a/android/app/src/main/res/drawable-land-hdpi/splash.png and b/android/app/src/main/res/drawable-land-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-mdpi/splash.png b/android/app/src/main/res/drawable-land-mdpi/splash.png index f7a64923..22e71416 100644 Binary files a/android/app/src/main/res/drawable-land-mdpi/splash.png and b/android/app/src/main/res/drawable-land-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xhdpi/splash.png b/android/app/src/main/res/drawable-land-xhdpi/splash.png index 80772550..e528b251 100644 Binary files a/android/app/src/main/res/drawable-land-xhdpi/splash.png and b/android/app/src/main/res/drawable-land-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxhdpi/splash.png index 14c6c8fe..868ffb8d 100644 Binary files a/android/app/src/main/res/drawable-land-xxhdpi/splash.png and b/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png index 244ca250..5c22a1e5 100644 Binary files a/android/app/src/main/res/drawable-land-xxxhdpi/splash.png and b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-hdpi/splash.png b/android/app/src/main/res/drawable-port-hdpi/splash.png index 74faaa58..0f22df20 100644 Binary files a/android/app/src/main/res/drawable-port-hdpi/splash.png and b/android/app/src/main/res/drawable-port-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-mdpi/splash.png b/android/app/src/main/res/drawable-port-mdpi/splash.png index e944f4ad..c506a03d 100644 Binary files a/android/app/src/main/res/drawable-port-mdpi/splash.png and b/android/app/src/main/res/drawable-port-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xhdpi/splash.png b/android/app/src/main/res/drawable-port-xhdpi/splash.png index 564a82ff..4f00836c 100644 Binary files a/android/app/src/main/res/drawable-port-xhdpi/splash.png and b/android/app/src/main/res/drawable-port-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxhdpi/splash.png index bfabe687..5052f929 100644 Binary files a/android/app/src/main/res/drawable-port-xxhdpi/splash.png and b/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png index 69290712..872a4725 100644 Binary files a/android/app/src/main/res/drawable-port-xxxhdpi/splash.png and b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml index 0210177e..82f381cb 100644 --- a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -5,11 +5,10 @@ android:viewportHeight="108"> - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable/splash.png b/android/app/src/main/res/drawable/splash.png index f7a64923..22e71416 100644 Binary files a/android/app/src/main/res/drawable/splash.png and b/android/app/src/main/res/drawable/splash.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index 274de4ad..70ac0d14 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png index 84330fcb..e6de0e30 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png index 3edaa5c3..95a6a76e 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index d6db075c..869dbb55 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png index 000e8923..2f6eb489 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png index 39d555ea..d46c2323 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 9a92ea0b..672f7c68 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png index a1d8ae1b..045a6a14 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png index c1ab37a0..bb30c15c 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index c7e2ee6c..2f3128ab 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png index 35d2df45..7f6ab622 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png index 8331ea1a..81af8408 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 4c4ab5f0..03d80d77 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png index 94b17b2c..2f08a6dc 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png index 780f32c4..6979141b 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/scripts/generate-icons.sh b/scripts/generate-icons.sh index 5386bbc7..1678f1b1 100755 --- a/scripts/generate-icons.sh +++ b/scripts/generate-icons.sh @@ -45,21 +45,18 @@ fi BG_COLOR="#2b0037" # Shakespeare purple TMPDIR=$(mktemp -d) -LOGO_WHITE_SVG="$TMPDIR/logo_white.svg" -LOGO_WHITE="$TMPDIR/logo_white.png" +LOGO_COLOR="$TMPDIR/logo_color.png" -# Recolor the SVG fills to white before rasterizing. -sed -E 's/fill:#[0-9A-Fa-f]{6}/fill:#ffffff/g' "$SOURCE_SVG" > "$LOGO_WHITE_SVG" - -echo "Rendering white SVG at 512x512..." +# Render the original colorful SVG at high resolution for downscaling. +echo "Rendering colorful SVG at 512x512..." if [ "$SVG_RENDERER" = "inkscape" ]; then - inkscape --export-type=png --export-filename="$LOGO_WHITE" -w 512 -h 512 "$LOGO_WHITE_SVG" 2>/dev/null + inkscape --export-type=png --export-filename="$LOGO_COLOR" -w 512 -h 512 "$SOURCE_SVG" 2>/dev/null else - rsvg-convert -w 512 -h 512 "$LOGO_WHITE_SVG" -o "$LOGO_WHITE" + rsvg-convert -w 512 -h 512 "$SOURCE_SVG" -o "$LOGO_COLOR" fi -# ── Adaptive icon foreground PNGs (transparent bg, white logo, safe-zone padding) ── +# ── Adaptive icon foreground PNGs (transparent bg, colorful logo, safe-zone padding) ── # Content at 47% of canvas to fit within Android's adaptive icon safe zone. echo "Generating adaptive foreground PNGs..." @@ -69,7 +66,7 @@ make_foreground() { local content_size=$(echo "$size * 47 / 100" | bc) local dest=$2 $MAGICK -size "${size}x${size}" "xc:none" \ - \( "$LOGO_WHITE" -resize "${content_size}x${content_size}" \) \ + \( "$LOGO_COLOR" -resize "${content_size}x${content_size}" \) \ -gravity center -compose over -composite \ "$dest" } @@ -82,8 +79,7 @@ make_foreground 192 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foregrou # ── Legacy launcher icons (ic_launcher.png and ic_launcher_round.png) ── # These are used on pre-API-26 devices and as fallback on some launchers. -# They must have the logo composited onto the purple background — NOT just -# a solid color fill. +# They must have the logo composited onto the purple background. echo "Generating legacy launcher icons (ic_launcher.png and ic_launcher_round.png)..." @@ -93,7 +89,7 @@ make_legacy_square() { local content_size=$(echo "$size * 60 / 100" | bc) local dest=$2 $MAGICK -size "${size}x${size}" "xc:${BG_COLOR}" \ - \( "$LOGO_WHITE" -resize "${content_size}x${content_size}" \) \ + \( "$LOGO_COLOR" -resize "${content_size}x${content_size}" \) \ -gravity center -compose over -composite \ "$dest" } @@ -111,7 +107,7 @@ make_legacy_round() { # Fill purple, apply circle mask, composite logo $MAGICK -size "${size}x${size}" "xc:${BG_COLOR}" \ "$mask" -compose dst-in -composite \ - \( "$LOGO_WHITE" -resize "${content_size}x${content_size}" \) \ + \( "$LOGO_COLOR" -resize "${content_size}x${content_size}" \) \ -gravity center -compose over -composite \ "$dest" } @@ -138,7 +134,37 @@ cat > "$BACKGROUND_COLOR_FILE" << 'EOF' EOF -# ── iOS App Icon (1024x1024, white logo on purple background) ── +# ── Splash screen PNGs (logo centered on purple background) ── +# These are the legacy splash screens used by the Capacitor splash screen plugin. +# Logo is sized to ~25% of the shorter dimension, centered on solid purple. + +echo "Generating splash screen PNGs..." + +make_splash() { + local w=$1 + local h=$2 + local dest=$3 + local shorter=$(( w < h ? w : h )) + local logo_size=$(echo "$shorter * 25 / 100" | bc) + $MAGICK -size "${w}x${h}" "xc:${BG_COLOR}" \ + \( "$LOGO_COLOR" -resize "${logo_size}x${logo_size}" \) \ + -gravity center -compose over -composite \ + "$dest" +} + +make_splash 480 320 android/app/src/main/res/drawable/splash.png +make_splash 320 480 android/app/src/main/res/drawable-port-mdpi/splash.png +make_splash 480 800 android/app/src/main/res/drawable-port-hdpi/splash.png +make_splash 720 1280 android/app/src/main/res/drawable-port-xhdpi/splash.png +make_splash 960 1600 android/app/src/main/res/drawable-port-xxhdpi/splash.png +make_splash 1280 1920 android/app/src/main/res/drawable-port-xxxhdpi/splash.png +make_splash 480 320 android/app/src/main/res/drawable-land-mdpi/splash.png +make_splash 800 480 android/app/src/main/res/drawable-land-hdpi/splash.png +make_splash 1280 720 android/app/src/main/res/drawable-land-xhdpi/splash.png +make_splash 1600 960 android/app/src/main/res/drawable-land-xxhdpi/splash.png +make_splash 1920 1280 android/app/src/main/res/drawable-land-xxxhdpi/splash.png + +# ── iOS App Icon (1024x1024, colorful logo on purple background) ── echo "Generating iOS app icon..." @@ -146,9 +172,9 @@ IOS_ICON_DIR="ios/App/App/Assets.xcassets/AppIcon.appiconset" if [ -d "$IOS_ICON_DIR" ]; then IOS_ICON="$IOS_ICON_DIR/AppIcon-512@2x.png" - # Logo at ~60% of canvas, centered on purple background (matches legacy Android style) + # Logo at ~60% of canvas, centered on purple background $MAGICK -size "1024x1024" "xc:${BG_COLOR}" \ - \( "$LOGO_WHITE" -resize "614x614" \) \ + \( "$LOGO_COLOR" -resize "614x614" \) \ -gravity center -compose over -composite \ "$IOS_ICON" echo -e " ${GREEN}✓${NC} $IOS_ICON" @@ -160,11 +186,12 @@ fi rm -rf "$TMPDIR" echo -e "\n${GREEN}App icons generated successfully!${NC}" -echo -e "Icon: white Shakespeare logo on ${GREEN}${BG_COLOR}${NC} (Shakespeare purple)" +echo -e "Icon: colorful Shakespeare logo on ${GREEN}${BG_COLOR}${NC} (Shakespeare purple)" echo -e "Generated:" echo -e " Android:" echo -e " - ic_launcher_foreground.png (adaptive, all densities)" echo -e " - ic_launcher.png (legacy square, all densities)" echo -e " - ic_launcher_round.png (legacy round, all densities)" +echo -e " - splash.png (portrait + landscape, all densities)" echo -e " iOS:" echo -e " - AppIcon-512@2x.png (1024x1024)"