Skip to content

Commit

Permalink
fix: icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jerichoi224 committed Oct 13, 2023
1 parent 7577382 commit bc20b80
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 38 deletions.
24 changes: 24 additions & 0 deletions android/app/src/main/res/drawable/ic_launcher_background.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"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M0,0h108v108h-108z">
<aapt:attr name="android:fillColor">
<gradient
android:startX="-2.75"
android:startY="-1.75"
android:endX="108"
android:endY="108"
android:type="linear">
<item android:offset="0.02" android:color="#FFFFFFFF"/>
<item android:offset="0.99" android:color="#FFFFFFFF"/>
<item android:offset="0.99" android:color="#FF4385FF"/>
<item android:offset="0.99" android:color="#FFFFFFFF"/>
<item android:offset="0.99" android:color="#FFFFFFFF"/>
</gradient>
</aapt:attr>
</path>
</vector>
56 changes: 26 additions & 30 deletions android/app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="500dp"
android:height="500dp"
android:viewportWidth="500"
android:viewportHeight="500">
<path
android:fillColor="#FF000000"
android:strokeWidth="1"
android:pathData="M182.14,94.15a17.73,17.73 0,1 0,35.46 0a17.73,17.73 0,1 0,-35.46 0z"
android:strokeColor="#000000"/>
<path
android:fillColor="#FF000000"
android:strokeWidth="1"
android:pathData="M291.18,94.34a17.73,17.73 0,1 0,35.46 0a17.73,17.73 0,1 0,-35.46 0z"
android:strokeColor="#000000"/>
<path
android:pathData="M254.74,368.83C239.52,368.83 225.04,365.67 211.92,359.97L254.68,175.23L297.06,360.19C284.07,365.75 269.76,368.83 254.74,368.83Z"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M46.09,37.13C47.5,37.13 48.65,35.98 48.65,34.56C48.65,33.15 47.5,32 46.09,32C44.67,32 43.52,33.15 43.52,34.56C43.52,35.98 44.67,37.13 46.09,37.13Z"
android:fillColor="#000000"/>
<path
android:pathData="M61.86,37.16C63.28,37.16 64.43,36.01 64.43,34.59C64.43,33.18 63.28,32.03 61.86,32.03C60.44,32.03 59.3,33.18 59.3,34.59C59.3,36.01 60.44,37.16 61.86,37.16Z"
android:fillColor="#000000"/>
<path
android:pathData="M54.02,74.31C51.82,74.31 49.73,73.85 47.83,73.03L54.02,46.3L60.15,73.06C58.27,73.86 56.2,74.31 54.02,74.31Z"
android:fillColor="#FF0000"/>
<path
android:fillColor="#FF000000"
android:pathData="M254.29,92.73C278.87,92.73 299.53,110.04 305.46,133.48C360.34,147.68 400.88,197.55 400.88,256.88C400.88,317.5 358.56,368.24 301.84,381.16L254.69,175.36L206.8,382.26C150.06,369.36 107.7,318.61 107.7,257.96C107.7,198.74 148.09,148.95 202.83,134.64C208.36,110.61 229.3,92.73 254.29,92.73Z"/>
android:pathData="M53.96,34.36C57.52,34.36 60.51,36.86 61.36,40.26C69.3,42.31 75.17,49.53 75.17,58.11C75.17,66.88 69.05,74.22 60.84,76.09L54.02,46.32L47.09,76.25C38.88,74.38 32.75,67.04 32.75,58.27C32.75,49.7 38.59,42.49 46.51,40.42C47.31,36.95 50.34,34.36 53.96,34.36Z"
android:fillColor="#000000"/>
<path
android:pathData="M290.45,179.74a29.47,29.47 0,1 0,58.94 0a29.47,29.47 0,1 0,-58.94 0z"
android:fillColor="#FFFFFF"/>
android:pathData="M63.45,51.21C65.81,51.21 67.72,49.3 67.72,46.95C67.72,44.59 65.81,42.68 63.45,42.68C61.1,42.68 59.19,44.59 59.19,46.95C59.19,49.3 61.1,51.21 63.45,51.21Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M160.64,180.9a29.47,29.47 0,1 0,58.94 0a29.47,29.47 0,1 0,-58.94 0z"
android:fillColor="#FFFFFF"/>
android:pathData="M44.67,51.38C47.03,51.38 48.94,49.47 48.94,47.12C48.94,44.76 47.03,42.85 44.67,42.85C42.32,42.85 40.41,44.76 40.41,47.12C40.41,49.47 42.32,51.38 44.67,51.38Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M130.62,305.64a29.47,29.47 0,1 0,58.94 0a29.47,29.47 0,1 0,-58.94 0z"
android:fillColor="#FFFFFF"/>
android:pathData="M40.33,69.43C42.69,69.43 44.59,67.52 44.59,65.17C44.59,62.81 42.69,60.9 40.33,60.9C37.98,60.9 36.07,62.81 36.07,65.17C36.07,67.52 37.98,69.43 40.33,69.43Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M318.45,305.07a29.47,29.47 0,1 0,58.94 0a29.47,29.47 0,1 0,-58.94 0z"
android:fillColor="#FFFFFF"/>
android:pathData="M67.51,69.35C69.86,69.35 71.77,67.44 71.77,65.08C71.77,62.73 69.86,60.82 67.51,60.82C65.15,60.82 63.24,62.73 63.24,65.08C63.24,67.44 65.15,69.35 67.51,69.35Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M192.66,257.47C192.66,233.38 212.19,213.85 236.28,213.85C239.54,213.85 242.71,214.21 245.77,214.89L226.09,299.9C206.92,295.31 192.66,278.06 192.66,257.47Z"
android:fillColor="#FFFFFF"/>
android:pathData="M45.04,58.2C45.04,54.71 47.87,51.88 51.35,51.88C51.83,51.88 52.28,51.94 52.73,52.03L49.88,64.33C47.11,63.67 45.04,61.17 45.04,58.2Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M316.35,256.76C316.35,277.29 302.17,294.5 283.07,299.15L263.58,214.1C266.53,213.47 269.59,213.14 272.73,213.14C296.82,213.14 316.35,232.67 316.35,256.76Z"
android:fillColor="#FFFFFF"/>
android:pathData="M62.94,58.09C62.94,61.06 60.89,63.55 58.12,64.23L55.3,51.92C55.73,51.83 56.17,51.78 56.63,51.78C60.11,51.78 62.94,54.61 62.94,58.09Z"
android:fillColor="#ffffff"/>
</vector>
26 changes: 26 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,26 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group>
<clip-path
android:pathData="M32.75,32h42.28v44.1h-42.28z"/>
<path
android:pathData="M46.04,37.11C47.45,37.11 48.6,35.97 48.6,34.56C48.6,33.14 47.45,32 46.04,32C44.63,32 43.48,33.14 43.48,34.56C43.48,35.97 44.63,37.11 46.04,37.11Z"
android:strokeWidth="0.25"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M61.76,37.14C63.17,37.14 64.32,36 64.32,34.58C64.32,33.17 63.17,32.03 61.76,32.03C60.35,32.03 59.21,33.17 59.21,34.58C59.21,36 60.35,37.14 61.76,37.14Z"
android:strokeWidth="0.25"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M53.94,74.03C52.33,74.03 50.8,73.7 49.42,73.09L53.94,53.56L58.42,73.12C57.04,73.71 55.53,74.03 53.94,74.03Z"
android:fillColor="#000000"/>
<path
android:pathData="M53.89,34.35C57.43,34.35 60.41,36.85 61.27,40.23C69.18,42.28 75.03,49.47 75.03,58.02C75.03,66.76 68.92,74.08 60.74,75.94L58.04,64.12C59.58,63.74 60.91,62.79 61.77,61.5C62.45,60.5 62.86,59.28 62.86,57.97C62.86,54.49 60.04,51.68 56.57,51.68C56.11,51.68 55.67,51.73 55.25,51.82L55.25,51.85C55.25,51.85 55.24,51.86 55.23,51.86L53.94,46.27L52.64,51.91C52.21,51.82 51.77,51.77 51.32,51.77C49.14,51.77 47.22,52.88 46.09,54.57C45.4,55.58 45,56.8 45,58.11C45,61.06 47.04,63.54 49.79,64.22L47.04,76.1C38.86,74.24 32.75,66.92 32.75,58.18C32.75,49.64 38.57,42.46 46.47,40.39C47.27,36.93 50.28,34.35 53.89,34.35ZM44.66,42.77C43.19,42.77 41.89,43.53 41.12,44.67C40.66,45.35 40.38,46.18 40.38,47.07C40.38,49.41 42.29,51.32 44.63,51.32C46.11,51.32 47.41,50.56 48.17,49.42C48.64,48.74 48.91,47.91 48.91,47.02C48.91,44.68 47.01,42.77 44.66,42.77ZM63.38,42.61C61.9,42.61 60.6,43.36 59.84,44.5C59.37,45.18 59.1,46.01 59.1,46.9C59.1,49.25 61,51.15 63.35,51.15C64.83,51.15 66.13,50.39 66.89,49.25C67.36,48.57 67.63,47.74 67.63,46.85C67.63,44.51 65.73,42.61 63.38,42.61ZM40.33,60.76C38.86,60.76 37.56,61.51 36.79,62.66C36.33,63.34 36.06,64.16 36.06,65.05C36.06,67.4 37.96,69.3 40.3,69.3C41.78,69.3 43.08,68.55 43.84,67.41C44.31,66.72 44.58,65.9 44.58,65.01C44.58,62.66 42.68,60.76 40.33,60.76ZM67.42,60.68C65.94,60.68 64.64,61.43 63.88,62.57C63.41,63.26 63.14,64.08 63.14,64.97C63.14,67.32 65.04,69.22 67.39,69.22C68.87,69.22 70.17,68.47 70.93,67.32C71.39,66.64 71.67,65.82 71.67,64.93C71.67,62.58 69.77,60.68 67.42,60.68Z"
android:fillColor="#000000"/>
</group>
</vector>
5 changes: 0 additions & 5 deletions android/app/src/main/res/drawable/launch_background.xml

This file was deleted.

1 change: 1 addition & 0 deletions android/app/src/main/res/mipmap/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="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
3 changes: 2 additions & 1 deletion android/app/src/main/res/mipmap/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
2 changes: 1 addition & 1 deletion android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowBackground">@drawable/ic_launcher_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowBackground">@drawable/ic_launcher_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Expand Down

0 comments on commit bc20b80

Please sign in to comment.