Skip to content

Commit

Permalink
feat(android): monochromatic icon
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Sep 16, 2024
1 parent 91b9b9e commit 5050445
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 61 deletions.
22 changes: 11 additions & 11 deletions android/app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="512"
android:viewportHeight="512">
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M0,0h512v512h-512z"
android:pathData="M0,0h108v108h-108z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="0"
android:startY="0"
android:endX="512"
android:endY="512"
android:endX="108"
android:endY="108"
android:type="linear">
<item android:offset="0" android:color="#FF8780E0"/>
<item android:offset="1" android:color="#FF251C98"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M0,396.88l89.61,32.2l82.29,-148.06l166.96,37.14l173.15,-280.79l0,474.63l-512,0z"
android:pathData="M0,83.72l18.9,6.79l17.36,-31.23l35.22,7.83l36.52,-59.23l0,100.12l-108,0z"
android:strokeWidth="1"
android:fillColor="#FFD554"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M0,426.58l102.03,37.14l83.48,-148.55l166.96,37.14l159.54,-259.96l0,419.65l-512,0z"
android:pathData="M0,89.98l21.52,7.83l17.61,-31.33l35.22,7.83l33.65,-54.84l0,88.52l-108,0z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="194.61"
android:startY="240.39"
android:endX="512.01"
android:endY="443.14"
android:startX="41.05"
android:startY="50.7"
android:endX="108"
android:endY="93.46"
android:type="linear">
<item android:offset="0" android:color="#FFFF9DEF"/>
<item android:offset="1" android:color="#FFEA48B3"/>
Expand Down
95 changes: 45 additions & 50 deletions android/app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,54 +1,49 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="512"
android:viewportHeight="512">
<group android:scaleX="0.65"
android:scaleY="0.65"
android:translateX="89.6"
android:translateY="89.6">
<path
android:pathData="M324.31,392.83C311.52,416.94 298.09,438.74 284.03,458.22C282.05,460.96 272.82,462.74 256.34,463.55C256.32,463.55 256.3,463.55 256.28,463.55L256.21,463.55C239.73,462.74 230.5,460.96 228.52,458.22C214.46,438.74 201.03,416.94 188.24,392.83L324.31,392.83Z"
android:strokeWidth="1"
android:fillColor="#C8C8C8"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M340.51,362.22L340.51,391.45C340.51,398.8 302.67,404.77 256,404.77C209.33,404.77 171.49,398.8 171.49,391.45L171.49,362.22C172.08,369.5 209.69,375.37 256,375.37C302.67,375.37 340.51,369.41 340.51,362.05L340.5,362.22Z"
android:strokeWidth="1"
android:fillColor="#0F57CA"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M256,348.74C302.67,348.74 340.51,354.7 340.51,362.05C340.51,369.41 302.67,375.37 256,375.37C209.33,375.37 171.49,369.41 171.49,362.05C171.49,354.7 209.33,348.74 256,348.74Z"
android:strokeWidth="1"
android:fillColor="#1E4686"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M256.21,367.27L255.78,367.27C237.09,367.21 188.24,364.34 188.24,357.4C188.24,322.45 203.03,270.11 215.95,237.92C228.88,205.72 233.66,199.06 230.38,151.34C227.09,103.61 218.59,94.42 223.59,71.06C226.92,55.48 237.84,47.65 256.34,47.55L256.21,47.55L256.28,47.55L256.34,47.55L256.34,47.55L256.77,47.56C274.93,47.8 285.67,55.64 288.97,71.06C293.96,94.42 285.46,103.61 282.18,151.34C278.89,199.06 283.67,205.72 296.6,237.92C309.53,270.11 324.31,322.45 324.31,357.4C324.31,364.34 275.46,367.21 256.77,367.27L256.34,367.27L256.21,367.27Z"
android:strokeWidth="1"
android:fillColor="#E4E4E4"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M231.46,177.6C232.46,177.62 241.5,178.84 256.34,178.84L256.27,178.84L256.74,178.84C271.27,178.81 280.1,177.62 281.09,177.6L281.14,177.6C281.17,177.6 281.18,177.6 281.18,177.61C281.18,181.64 281.38,185.11 281.64,188.65C281.6,188.7 270.99,189.95 256.34,189.95L256.27,184.39L256.21,189.95C241.73,189.95 231.19,188.72 230.91,188.65C231.17,185.11 231.37,181.64 231.37,177.61C231.37,177.6 231.39,177.6 231.41,177.6Z"
android:strokeWidth="1"
android:fillColor="#D60C0C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M255.82,168.86C240.76,168.84 231.25,167.93 231.24,167.9C231.13,164.4 230.96,160.64 230.71,156.55C230.71,156.56 241.12,157.42 256.34,157.42L256.27,157.42L256.72,157.42C271.66,157.4 281.84,156.56 281.84,156.55C281.59,160.64 281.42,164.4 281.31,167.9C281.3,167.93 271.79,168.84 256.73,168.86Z"
android:strokeWidth="1"
android:fillColor="#D60C0C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M193.72,355.16C194.39,328.71 200.27,299.65 211.36,268C232.76,216.75 238.32,204.3 234.07,151.25C228.64,117.11 225.3,94.58 227.07,79.04C229.25,60.02 237.44,52.24 253.62,50.59C262.61,50.59 236.15,54.51 233.6,85.67C233.29,125.41 239.61,133.26 241.23,171.21C243.4,228.15 222.02,255.58 214.23,306.72C210.85,328.93 210.52,333.82 209.45,357.67C209.51,358.47 204.26,357.64 193.72,355.16Z"
android:strokeWidth="1"
android:fillColor="#FFFFFF"
android:fillAlpha="0.35"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
</group>
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M65.25,75.78C63.22,79.6 61.09,83.06 58.86,86.15C58.54,86.59 57.08,86.87 54.46,87C54.46,87 54.46,87 54.45,87L54.44,87C51.83,86.87 50.36,86.59 50.05,86.15C47.82,83.06 45.69,79.6 43.66,75.78L65.25,75.78Z"
android:strokeWidth="1"
android:fillColor="#C8C8C8"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M67.82,70.92L67.82,75.56C67.82,76.73 61.81,77.67 54.41,77.67C47,77.67 41,76.73 41,75.56L41,70.92C41.09,72.08 47.06,73.01 54.41,73.01C61.81,73.01 67.82,72.06 67.82,70.9L67.81,70.92Z"
android:strokeWidth="1"
android:fillColor="#0F57CA"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M54.41,68.78C61.81,68.78 67.82,69.73 67.82,70.9C67.82,72.06 61.81,73.01 54.41,73.01C47,73.01 41,72.06 41,70.9C41,69.73 47,68.78 54.41,68.78Z"
android:strokeWidth="1"
android:fillColor="#1E4686"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M54.44,71.72L54.29,71.72C51.26,71.71 43.66,71.25 43.66,70.16C43.66,64.61 46,56.31 48.05,51.2C50.11,46.09 50.86,45.04 50.34,37.47C49.82,29.89 48.47,28.44 49.27,24.73C49.79,22.26 51.53,21.01 54.46,21L54.44,21L54.46,21L54.44,21C57.38,21.01 59.11,22.26 59.64,24.73C60.43,28.44 59.08,29.89 58.56,37.47C58.04,45.04 58.8,46.09 60.85,51.2C62.9,56.31 65.25,64.61 65.25,70.16C65.25,70.78 62.79,71.19 60.11,71.44L59.55,71.49C57.69,71.64 55.8,71.72 54.61,71.72L54.46,71.72L54.44,71.72Z"
android:strokeWidth="1"
android:fillColor="#E4E4E4"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M50.5,41.63C50.51,41.61 51.97,41.83 54.46,41.83L54.45,41.83L54.71,41.83C57.04,41.81 58.4,41.61 58.4,41.63C58.4,42.27 58.44,42.82 58.48,43.38C58.47,43.39 56.79,43.59 54.46,43.59L54.45,42.71L54.44,43.59C52.29,43.59 50.69,43.42 50.46,43.39L50.43,43.38C50.47,42.82 50.5,42.27 50.5,41.63Z"
android:strokeWidth="1"
android:fillColor="#D60C0C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M58.51,38.29C58.47,38.94 58.44,39.54 58.42,40.09C58.42,40.1 56.99,40.23 54.71,40.24L54.19,40.24C51.91,40.23 50.48,40.1 50.48,40.09C50.46,39.54 50.43,38.94 50.4,38.29C50.4,38.29 52.05,38.43 54.46,38.43L54.44,38.43C56.86,38.43 58.51,38.29 58.51,38.29Z"
android:strokeWidth="1"
android:fillColor="#D60C0C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M44.53,69.8C44.63,65.61 45.57,61 47.33,55.97C50.72,47.84 51.6,45.87 50.93,37.45C50.07,32.04 49.54,28.46 49.82,25.99C50.16,22.98 51.46,21.74 54.03,21.48C55.46,21.48 51.26,22.1 50.85,27.05C50.8,33.35 51.81,34.6 52.07,40.62C52.41,49.65 49.02,54 47.78,62.12C47.24,65.64 47.19,66.42 47.02,70.2C47.03,70.33 46.2,70.2 44.53,69.8Z"
android:strokeWidth="1"
android:fillColor="#FFFFFF"
android:fillAlpha="0.35"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
</vector>
24 changes: 24 additions & 0 deletions android/app/src/main/res/drawable/ic_launcher_monochrome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M58.85,86.15C58.54,86.59 57.08,86.87 54.46,87L54.44,87C51.83,86.87 50.36,86.59 50.05,86.15C48.05,83.38 46.13,80.31 44.29,76.95C46.74,77.39 50.37,77.67 54.41,77.67C58.5,77.67 62.17,77.38 64.63,76.93C62.78,80.3 60.86,83.38 58.85,86.15Z"
android:strokeWidth="1"
android:fillColor="#1E1E1C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M67.81,70.92L67.81,74.29C67.81,75.46 61.81,76.4 54.41,76.4C47,76.4 41,75.46 41,74.29L41,70.92C41.09,72.08 47.06,73.01 54.41,73.01C61.81,73.01 67.81,72.06 67.81,70.9L67.81,70.92Z"
android:strokeWidth="1"
android:fillColor="#1E1E1C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M54.45,42.71L54.46,43.59C56.53,43.59 58.09,43.43 58.41,43.39L58.47,43.39C58.47,43.37 58.47,43.35 58.47,43.33C58.7,46.22 59.49,47.82 60.85,51.2C62.9,56.31 65.24,64.61 65.24,70.16C65.24,71.25 57.64,71.71 54.61,71.72L54.46,71.72L54.44,71.72L54.29,71.72C53.1,71.72 51.21,71.64 49.35,71.49L48.79,71.44C46.12,71.19 43.66,70.78 43.66,70.16C43.66,64.61 46,56.31 48.05,51.2C49.41,47.82 50.2,46.21 50.43,43.31L50.43,43.38L50.45,43.39C50.69,43.42 52.29,43.59 54.44,43.59L54.45,42.71ZM58.42,40.02C58.39,41.1 58.39,42.01 58.44,42.82C58.42,42.45 58.4,42.06 58.4,41.63C58.4,41.61 57.04,41.81 54.71,41.83L54.19,41.83C51.86,41.81 50.5,41.61 50.5,41.63C50.5,42.06 50.49,42.44 50.46,42.81C50.5,42.1 50.51,41.31 50.49,40.4L50.48,40.09C50.48,40.1 51.91,40.23 54.19,40.24L54.71,40.24C56.55,40.24 57.84,40.15 58.27,40.11L58.37,40.1C58.4,40.1 58.42,40.09 58.42,40.09L58.42,40.02ZM54.45,21C57.38,21.01 59.11,22.26 59.64,24.73C60.43,28.44 59.08,29.89 58.56,37.47L58.53,37.9L58.51,38.29C58.51,38.29 56.97,38.42 54.7,38.43L54.44,38.43L54.21,38.43C52.01,38.42 50.51,38.3 50.4,38.29L50.4,38.31L50.4,38.32L50.37,37.9C50.36,37.76 50.35,37.61 50.34,37.47C49.82,29.89 48.47,28.44 49.26,24.73C49.78,22.34 51.41,21.1 54.18,21.01L54.45,21Z"
android:strokeWidth="1"
android:fillColor="#1E1E1C"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
</vector>
1 change: 1 addition & 0 deletions android/app/src/main/res/mipmap-anydpi/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>

0 comments on commit 5050445

Please sign in to comment.