Replace all default Capacitor images with Shakespeare branding
- Regenerate launcher icon PNGs with colorful logo (not white silhouette) - Update adaptive icon vector drawable with original logo colors - Generate splash screen PNGs for all densities and orientations - Update generate-icons.sh to use colorful SVG and generate splash screens
No files matched your search
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 79 KiB |
@@ -5,11 +5,10 @@
|
|||||||
android:viewportHeight="108">
|
android:viewportHeight="108">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Shakespeare parrot logo from public/shakespeare.svg.
|
Shakespeare theater masks logo from public/shakespeare.svg.
|
||||||
SVG viewBox is "0 0 128 128".
|
SVG viewBox is "0 0 128 128", with original colors preserved.
|
||||||
We scale to ~55% and center within the 108x108 viewport to fit
|
Scaled to ~55% and centered within the 108x108 viewport to fit
|
||||||
Android's adaptive icon safe zone (66% of 108dp).
|
Android's adaptive icon safe zone (66% of 108dp).
|
||||||
Scale factor: 108 * 0.55 / 128 ≈ 0.464. Translate to center.
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<group
|
<group
|
||||||
@@ -18,36 +17,66 @@
|
|||||||
android:scaleX="0.464"
|
android:scaleX="0.464"
|
||||||
android:scaleY="0.464">
|
android:scaleY="0.464">
|
||||||
|
|
||||||
<!-- Beak right -->
|
<!-- Red beak right -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#F45125"
|
||||||
android:pathData="M110.28,61.32l2.63,8.84c0,0,7.24,-1.6,7.62,3.2c0.38,4.8,-6.77,8,-6.77,8l2.26,10.63 c0,0,7.9,-6.4,8,-15.61c0,0,0.66,-11.29,-6.11,-13.92C113.67,60.85,110.28,61.32,110.28,61.32z"/>
|
android:pathData="M110.28,61.32l2.63,8.84c0,0,7.24,-1.6,7.62,3.2c0.38,4.8,-6.77,8,-6.77,8l2.26,10.63 c0,0,7.9,-6.4,8,-15.61c0,0,0.66,-11.29,-6.11,-13.92C113.67,60.85,110.28,61.32,110.28,61.32z"/>
|
||||||
|
|
||||||
<!-- Tail feathers -->
|
<!-- Red tail feathers -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#F45125"
|
||||||
android:pathData="M68.71,94.99c0,0,-11.1,-4.7,-16.46,1.98c-0.75,0.94,-1.41,1.88,-2.16,2.82 c-0.56,0.75,-1.13,1.5,-1.69,2.16c-0.47,0.56,-1.03,1.13,-1.69,1.5c-0.66,0.38,-1.32,0.66,-2.07,0.85c-0.94,0.19,-1.88,0.19,-2.82,0.09 c-1.32,-0.09,-2.63,-0.38,-3.95,-0.66c-0.47,-0.09,-0.85,-0.19,-1.22,-0.28c-0.09,0,-0.19,-0.09,-0.28,-0.09 s-0.19,-0.09,-0.28,-0.09c-0.38,0.09,0.19,0.75,0.38,0.94c0.28,0.28,0.56,0.66,0.85,0.94c0.85,0.75,1.69,1.5,2.73,1.98 c1.32,0.66,2.73,1.03,4.14,1.13c0.09,0,0.38,0,0.47,0.09c0.19,0.19,-0.28,0.47,-0.47,0.56c-0.28,0.19,-0.47,0.28,-0.75,0.38 c-0.85,0.38,-1.79,0.56,-2.63,0.75c-0.85,0.19,-1.69,0.28,-2.45,0.28c-0.47,0,-0.85,0.09,-1.22,0.09c-0.28,0,-0.56,-0.09,-0.85,0 s0.09,0.47,0.28,0.56c0.38,0.19,0.75,0.47,1.13,0.66c1.13,0.56,2.26,1.03,3.39,1.32c1.5,0.38,3.1,0.56,4.61,0.38 c1.32,-0.19,2.63,-0.56,3.86,-1.03c6.77,-3.1,6.21,-9.59,12.42,-10.16c4.61,-0.38,11.1,2.07,11.1,2.07L68.71,94.99z"/>
|
android:pathData="M68.71,94.99c0,0,-11.1,-4.7,-16.46,1.98c-0.75,0.94,-1.41,1.88,-2.16,2.82 c-0.56,0.75,-1.13,1.5,-1.69,2.16c-0.47,0.56,-1.03,1.13,-1.69,1.5c-0.66,0.38,-1.32,0.66,-2.07,0.85c-0.94,0.19,-1.88,0.19,-2.82,0.09 c-1.32,-0.09,-2.63,-0.38,-3.95,-0.66c-0.47,-0.09,-0.85,-0.19,-1.22,-0.28c-0.09,0,-0.19,-0.09,-0.28,-0.09 s-0.19,-0.09,-0.28,-0.09c-0.38,0.09,0.19,0.75,0.38,0.94c0.28,0.28,0.56,0.66,0.85,0.94c0.85,0.75,1.69,1.5,2.73,1.98 c1.32,0.66,2.73,1.03,4.14,1.13c0.09,0,0.38,0,0.47,0.09c0.19,0.19,-0.28,0.47,-0.47,0.56c-0.28,0.19,-0.47,0.28,-0.75,0.38 c-0.85,0.38,-1.79,0.56,-2.63,0.75c-0.85,0.19,-1.69,0.28,-2.45,0.28c-0.47,0,-0.85,0.09,-1.22,0.09c-0.28,0,-0.56,-0.09,-0.85,0 s0.09,0.47,0.28,0.56c0.38,0.19,0.75,0.47,1.13,0.66c1.13,0.56,2.26,1.03,3.39,1.32c1.5,0.38,3.1,0.56,4.61,0.38 c1.32,-0.19,2.63,-0.56,3.86,-1.03c6.77,-3.1,6.21,-9.59,12.42,-10.16c4.61,-0.38,11.1,2.07,11.1,2.07L68.71,94.99z"/>
|
||||||
|
|
||||||
<!-- Beak left -->
|
<!-- Red beak left -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#F45125"
|
||||||
android:pathData="M19.79,38.28c0,0,-12.13,1.98,-15.24,12.79C0.61,64.9,20.26,69.5,20.26,69.5l1.22,-9.41 c0,0,-13.07,-1.32,-12.32,-6.3c0.94,-6.21,11.85,-5.64,11.85,-5.64L19.79,38.28z"/>
|
android:pathData="M19.79,38.28c0,0,-12.13,1.98,-15.24,12.79C0.61,64.9,20.26,69.5,20.26,69.5l1.22,-9.41 c0,0,-13.07,-1.32,-12.32,-6.3c0.94,-6.21,11.85,-5.64,11.85,-5.64L19.79,38.28z"/>
|
||||||
|
|
||||||
<!-- Wing detail -->
|
<!-- Red wing detail -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#F45125"
|
||||||
android:pathData="M20.73,70.92c0,0,-1.88,0.56,-4.61,2.54c-1.88,1.32,-4.42,3.01,-6.87,5.93 c-1.22,1.41,-2.16,3.1,-2.82,4.89c-0.47,1.22,-0.66,2.45,-0.66,3.76c0,0.28,0,0.56,0,0.85c0,0.09,0,0.85,0.28,0.66 c0.09,-0.09,0.19,-0.38,0.28,-0.47c0.19,-0.47,0.47,-0.85,0.75,-1.22c0.85,-1.13,1.88,-2.16,3.01,-3.01c0.38,-0.28,0.75,-0.47,1.13,-0.66 c0.28,-0.28,0.75,-0.66,0.94,-0.28c0.09,0.19,-0.09,0.47,-0.19,0.66c-0.09,0.28,-0.19,0.66,-0.19,0.94c-0.38,1.5,-0.56,3.01,-0.75,4.51 c-0.09,0.85,-0.09,1.69,0,2.45c0,0.38,0.09,0.85,0.09,1.22c0,0.19,0.09,0.38,0.09,0.56c0,0.19,0.19,0.47,0.38,0.19 c0.09,-0.09,0.09,-0.19,0.19,-0.38c0.19,-0.28,0.28,-0.66,0.47,-0.94c0.47,-0.85,0.94,-1.69,1.5,-2.63c0.66,-1.13,1.41,-2.16,2.16,-3.1 c0.85,-1.13,1.88,-2.26,2.92,-3.2c1.13,-1.03,2.35,-2.07,3.67,-2.92c0.75,-0.47,1.6,-0.94,2.45,-1.32L20.73,70.92z"/>
|
android:pathData="M20.73,70.92c0,0,-1.88,0.56,-4.61,2.54c-1.88,1.32,-4.42,3.01,-6.87,5.93 c-1.22,1.41,-2.16,3.1,-2.82,4.89c-0.47,1.22,-0.66,2.45,-0.66,3.76c0,0.28,0,0.56,0,0.85c0,0.09,0,0.85,0.28,0.66 c0.09,-0.09,0.19,-0.38,0.28,-0.47c0.19,-0.47,0.47,-0.85,0.75,-1.22c0.85,-1.13,1.88,-2.16,3.01,-3.01c0.38,-0.28,0.75,-0.47,1.13,-0.66 c0.28,-0.28,0.75,-0.66,0.94,-0.28c0.09,0.19,-0.09,0.47,-0.19,0.66c-0.09,0.28,-0.19,0.66,-0.19,0.94c-0.38,1.5,-0.56,3.01,-0.75,4.51 c-0.09,0.85,-0.09,1.69,0,2.45c0,0.38,0.09,0.85,0.09,1.22c0,0.19,0.09,0.38,0.09,0.56c0,0.19,0.19,0.47,0.38,0.19 c0.09,-0.09,0.09,-0.19,0.19,-0.38c0.19,-0.28,0.28,-0.66,0.47,-0.94c0.47,-0.85,0.94,-1.69,1.5,-2.63c0.66,-1.13,1.41,-2.16,2.16,-3.1 c0.85,-1.13,1.88,-2.26,2.92,-3.2c1.13,-1.03,2.35,-2.07,3.67,-2.92c0.75,-0.47,1.6,-0.94,2.45,-1.32L20.73,70.92z"/>
|
||||||
|
|
||||||
<!-- Body -->
|
<!-- Yellow body -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#FCC21B"
|
||||||
android:pathData="M116.4,79.29c-1.13,-5.55,-2.73,-11.01,-4.51,-16.46c-1.5,-4.61,-3.1,-9.31,-5.83,-13.36 c-1.22,-1.79,-3.01,-3.01,-5.27,-3.86c-4.33,-1.69,-9.97,-1.98,-13.73,-1.98c-5.64,0,-11.48,1.22,-16.74,3.67 c-1.88,5.64,-7.05,19.94,-14.86,26.34c0.47,2.63,1.03,5.36,1.79,8c1.32,4.61,3.01,9.22,4.61,13.83c1.5,4.42,3.29,8.84,6.58,12.23 c0.85,0.94,1.88,1.69,2.82,2.45c2.26,1.88,4.99,3.01,7.71,3.95c2.54,0.85,5.17,1.5,7.81,2.07c4.7,1.03,11.48,2.82,16.08,0.66 c2.54,-1.13,4.61,-2.92,6.3,-5.08c1.79,-2.26,3.2,-4.8,4.42,-7.43c1.88,-3.95,3.86,-8.37,4.14,-12.89 C117.99,87.38,117.24,83.24,116.4,79.29z"/>
|
android:pathData="M116.4,79.29c-1.13,-5.55,-2.73,-11.01,-4.51,-16.46c-1.5,-4.61,-3.1,-9.31,-5.83,-13.36 c-1.22,-1.79,-3.01,-3.01,-5.27,-3.86c-4.33,-1.69,-9.97,-1.98,-13.73,-1.98c-5.64,0,-11.48,1.22,-16.74,3.67 c-1.88,5.64,-7.05,19.94,-14.86,26.34c0.47,2.63,1.03,5.36,1.79,8c1.32,4.61,3.01,9.22,4.61,13.83c1.5,4.42,3.29,8.84,6.58,12.23 c0.85,0.94,1.88,1.69,2.82,2.45c2.26,1.88,4.99,3.01,7.71,3.95c2.54,0.85,5.17,1.5,7.81,2.07c4.7,1.03,11.48,2.82,16.08,0.66 c2.54,-1.13,4.61,-2.92,6.3,-5.08c1.79,-2.26,3.2,-4.8,4.42,-7.43c1.88,-3.95,3.86,-8.37,4.14,-12.89 C117.99,87.38,117.24,83.24,116.4,79.29z"/>
|
||||||
|
|
||||||
<!-- Head -->
|
<!-- Blue head -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFF"
|
android:fillColor="#429ADF"
|
||||||
android:pathData="M77.64,33.57c-0.28,-1.03,-1.03,-2.07,-1.6,-3.01c-6.3,-11.01,-20.04,-16.27,-32.26,-15.52 c-3.76,0.28,-9.31,0.85,-13.54,2.73c-2.07,0.94,-3.86,2.35,-4.99,4.14c-2.54,4.23,-3.76,8.94,-5.08,13.64 C18.67,41,17.35,46.55,16.5,52.2c-0.75,4.89,-1.41,10.25,-0.09,15.14c1.03,3.86,3.29,9.22,5.74,12.32 c2.73,3.39,6.58,7.34,10.72,8.84c0.75,0.28,1.6,0.47,2.45,0.66c1.6,0.28,3.29,0.47,4.89,0.19c0.94,-0.19,1.98,-0.28,2.92,-0.56 c1.88,-0.47,3.67,-1.13,5.46,-1.79c7.52,-3.01,13.64,-7.43,17.68,-14.58c1.69,-3.1,3.1,-6.4,4.42,-9.69c0.09,-0.19,0.19,-0.38,0.19,-0.56 c1.98,-5.46,3.29,-11.19,4.61,-16.84c0.66,-2.73,1.41,-5.55,1.79,-8.37C77.55,35.92,77.92,34.7,77.64,33.57z"/>
|
android:pathData="M77.64,33.57c-0.28,-1.03,-1.03,-2.07,-1.6,-3.01c-6.3,-11.01,-20.04,-16.27,-32.26,-15.52 c-3.76,0.28,-9.31,0.85,-13.54,2.73c-2.07,0.94,-3.86,2.35,-4.99,4.14c-2.54,4.23,-3.76,8.94,-5.08,13.64 C18.67,41,17.35,46.55,16.5,52.2c-0.75,4.89,-1.41,10.25,-0.09,15.14c1.03,3.86,3.29,9.22,5.74,12.32 c2.73,3.39,6.58,7.34,10.72,8.84c0.75,0.28,1.6,0.47,2.45,0.66c1.6,0.28,3.29,0.47,4.89,0.19c0.94,-0.19,1.98,-0.28,2.92,-0.56 c1.88,-0.47,3.67,-1.13,5.46,-1.79c7.52,-3.01,13.64,-7.43,17.68,-14.58c1.69,-3.1,3.1,-6.4,4.42,-9.69c0.09,-0.19,0.19,-0.38,0.19,-0.56 c1.98,-5.46,3.29,-11.19,4.61,-16.84c0.66,-2.73,1.41,-5.55,1.79,-8.37C77.55,35.92,77.92,34.7,77.64,33.57z"/>
|
||||||
|
|
||||||
|
<!-- Dark eye band -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#193D51"
|
||||||
|
android:pathData="M23.09,40.53c1.69,-3.1,5.74,-5.55,9.31,-5.08c0.56,0.09,1.22,0.19,1.79,0.47 c3.57,1.5,5.74,4.99,4.89,8.56c-0.19,0.75,-0.66,0.85,-1.22,0.38c-1.98,-1.69,-3.57,-3.01,-6.21,-3.67c-2.16,-0.56,-4.61,-0.28,-6.68,0.28 c-0.47,0.09,-1.22,0.56,-1.69,0.38C22.61,41.57,22.9,40.91,23.09,40.53z"/>
|
||||||
|
|
||||||
|
<!-- Dark mouth/chin -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#193D51"
|
||||||
|
android:pathData="M62.21,64.9c-1.03,1.6,-2.45,3.01,-3.86,4.33c-0.38,0.28,-0.66,0.66,-1.03,0.94 c-5.64,4.7,-13.26,7.05,-20.51,5.27c-1.98,-0.47,-4.14,-1.5,-5.74,-2.73c-1.22,-0.94,-2.45,-2.16,-3.48,-3.39c-1.88,-2.26,-3.29,-4.89,-4.23,-7.62 c-0.47,-1.41,-0.75,-2.73,-0.94,-4.23c0,-0.47,-0.66,-5.46,0.85,-4.8c0.38,0.19,0.66,0.47,0.94,0.75c0.28,0.38,0.47,0.75,0.75,1.03 c0.66,0.85,1.32,1.69,2.07,2.45c2.35,2.73,5.27,4.89,8.56,6.4c2.26,1.03,4.7,1.6,7.15,1.79c1.41,0.09,2.73,0.19,4.14,0.09 c5.08,-0.28,10.25,-1.79,14.86,-3.76c0.38,-0.19,0.85,-0.47,1.32,-0.47C64.66,61.04,62.5,64.52,62.21,64.9z"/>
|
||||||
|
|
||||||
|
<!-- Dark eye detail -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#193D51"
|
||||||
|
android:pathData="M67.58,51.16c0,0.47,-0.19,1.13,-0.75,1.03c-0.47,-0.09,-0.85,-0.94,-1.13,-1.22 c-1.32,-1.69,-3.86,-3.57,-6.4,-4.14c-3.01,-0.75,-5.27,0.56,-8.28,0.85c-0.85,0.09,-1.32,-0.28,-0.94,-1.03c1.6,-3.48,5.83,-6.21,10.25,-5.46 c0.75,0.09,1.41,0.28,2.07,0.56C66.26,43.36,67.86,47.59,67.58,51.16z"/>
|
||||||
|
|
||||||
|
<!-- Gold eye detail -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#9B7515"
|
||||||
|
android:pathData="M91.84,63.86c4.23,2.73,9.69,3.48,14.58,3.2c1.41,-0.09,2.26,0.09,1.88,1.69 c-0.75,3.29,-3.86,5.17,-6.87,5.83c-0.75,0.19,-1.5,0.19,-2.26,0.19c-1.41,-0.09,-2.82,-0.66,-4.04,-1.5c-2.63,-1.79,-4.61,-4.89,-5.17,-8 C89.68,63.67,90.25,62.83,91.84,63.86z"/>
|
||||||
|
|
||||||
|
<!-- Gold mouth detail -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#9B7515"
|
||||||
|
android:pathData="M65.22,80.79C64,79.57,64.66,79,65.98,78.25c4.51,-2.35,9.03,-5.93,11.38,-10.63 c0.85,-1.79,1.79,-1.41,2.45,0.28c1.13,3.1,1.03,6.87,-0.38,9.88c-0.66,1.41,-1.6,2.63,-2.82,3.57c-0.66,0.47,-1.32,0.75,-2.07,1.03 C71.43,83.33,67.58,83.24,65.22,80.79z"/>
|
||||||
|
|
||||||
|
<!-- Gold chin/jaw detail -->
|
||||||
|
<path
|
||||||
|
android:fillColor="#9B7515"
|
||||||
|
android:pathData="M110,96.41c-0.38,0,-0.94,-0.38,-1.41,-0.66c-0.47,-0.28,-0.94,-0.66,-1.22,-0.85 c-1.13,-0.56,-2.45,-1.13,-3.67,-1.5c-3.76,-1.22,-7.9,-1.22,-11.57,0c-2.63,0.85,-5.17,2.45,-7.24,4.33c-2.26,2.16,-3.95,4.8,-6.11,7.05 c-0.28,0.28,-0.56,0.56,-0.85,0.75c-0.56,0.28,-1.13,-0.09,-1.32,-0.66c-0.94,-3.95,1.69,-9.5,3.67,-12.89c2.26,-3.76,5.55,-6.77,9.78,-8 c2.07,-0.66,4.33,-0.66,6.49,-0.38c6.3,0.94,12.79,5.93,14.02,11.66C110.56,95.75,110.47,96.5,110,96.41z"/>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 20 KiB |
@@ -45,21 +45,18 @@ fi
|
|||||||
BG_COLOR="#2b0037" # Shakespeare purple
|
BG_COLOR="#2b0037" # Shakespeare purple
|
||||||
|
|
||||||
TMPDIR=$(mktemp -d)
|
TMPDIR=$(mktemp -d)
|
||||||
LOGO_WHITE_SVG="$TMPDIR/logo_white.svg"
|
LOGO_COLOR="$TMPDIR/logo_color.png"
|
||||||
LOGO_WHITE="$TMPDIR/logo_white.png"
|
|
||||||
|
|
||||||
# Recolor the SVG fills to white before rasterizing.
|
# Render the original colorful SVG at high resolution for downscaling.
|
||||||
sed -E 's/fill:#[0-9A-Fa-f]{6}/fill:#ffffff/g' "$SOURCE_SVG" > "$LOGO_WHITE_SVG"
|
echo "Rendering colorful SVG at 512x512..."
|
||||||
|
|
||||||
echo "Rendering white SVG at 512x512..."
|
|
||||||
|
|
||||||
if [ "$SVG_RENDERER" = "inkscape" ]; then
|
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
|
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
|
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.
|
# Content at 47% of canvas to fit within Android's adaptive icon safe zone.
|
||||||
|
|
||||||
echo "Generating adaptive foreground PNGs..."
|
echo "Generating adaptive foreground PNGs..."
|
||||||
@@ -69,7 +66,7 @@ make_foreground() {
|
|||||||
local content_size=$(echo "$size * 47 / 100" | bc)
|
local content_size=$(echo "$size * 47 / 100" | bc)
|
||||||
local dest=$2
|
local dest=$2
|
||||||
$MAGICK -size "${size}x${size}" "xc:none" \
|
$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 \
|
-gravity center -compose over -composite \
|
||||||
"$dest"
|
"$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) ──
|
# ── 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.
|
# 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
|
# They must have the logo composited onto the purple background.
|
||||||
# a solid color fill.
|
|
||||||
|
|
||||||
echo "Generating legacy launcher icons (ic_launcher.png and ic_launcher_round.png)..."
|
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 content_size=$(echo "$size * 60 / 100" | bc)
|
||||||
local dest=$2
|
local dest=$2
|
||||||
$MAGICK -size "${size}x${size}" "xc:${BG_COLOR}" \
|
$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 \
|
-gravity center -compose over -composite \
|
||||||
"$dest"
|
"$dest"
|
||||||
}
|
}
|
||||||
@@ -111,7 +107,7 @@ make_legacy_round() {
|
|||||||
# Fill purple, apply circle mask, composite logo
|
# Fill purple, apply circle mask, composite logo
|
||||||
$MAGICK -size "${size}x${size}" "xc:${BG_COLOR}" \
|
$MAGICK -size "${size}x${size}" "xc:${BG_COLOR}" \
|
||||||
"$mask" -compose dst-in -composite \
|
"$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 \
|
-gravity center -compose over -composite \
|
||||||
"$dest"
|
"$dest"
|
||||||
}
|
}
|
||||||
@@ -138,7 +134,37 @@ cat > "$BACKGROUND_COLOR_FILE" << 'EOF'
|
|||||||
</resources>
|
</resources>
|
||||||
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..."
|
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
|
if [ -d "$IOS_ICON_DIR" ]; then
|
||||||
IOS_ICON="$IOS_ICON_DIR/[email protected]"
|
IOS_ICON="$IOS_ICON_DIR/[email protected]"
|
||||||
# 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}" \
|
$MAGICK -size "1024x1024" "xc:${BG_COLOR}" \
|
||||||
\( "$LOGO_WHITE" -resize "614x614" \) \
|
\( "$LOGO_COLOR" -resize "614x614" \) \
|
||||||
-gravity center -compose over -composite \
|
-gravity center -compose over -composite \
|
||||||
"$IOS_ICON"
|
"$IOS_ICON"
|
||||||
echo -e " ${GREEN}✓${NC} $IOS_ICON"
|
echo -e " ${GREEN}✓${NC} $IOS_ICON"
|
||||||
@@ -160,11 +186,12 @@ fi
|
|||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
|
|
||||||
echo -e "\n${GREEN}App icons generated successfully!${NC}"
|
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 "Generated:"
|
||||||
echo -e " Android:"
|
echo -e " Android:"
|
||||||
echo -e " - ic_launcher_foreground.png (adaptive, all densities)"
|
echo -e " - ic_launcher_foreground.png (adaptive, all densities)"
|
||||||
echo -e " - ic_launcher.png (legacy square, all densities)"
|
echo -e " - ic_launcher.png (legacy square, all densities)"
|
||||||
echo -e " - ic_launcher_round.png (legacy round, 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 " iOS:"
|
||||||
echo -e " - [email protected] (1024x1024)"
|
echo -e " - [email protected] (1024x1024)"
|
||||||