Skip to content

Commit

Permalink
Add monochrome icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tughi committed Jun 15, 2024
1 parent c6e8faa commit a299df8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
5 changes: 0 additions & 5 deletions app/src/debug/res/mipmap-anydpi-v26/launcher.xml

This file was deleted.

32 changes: 32 additions & 0 deletions app/src/main/res/drawable/launcher_monochrome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<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="m54,25a29,29 0,0 0,-4.81 0.41l-0.61,3.19a26,26 0,0 0,-8.74 3.59l-2.64,-1.79a29,29 0,0 0,-6.82 6.8l1.82,2.67a26,26 0,0 0,-3.63 8.72l-3.14,0.6A29,29 0,0 0,25 54a29,29 0,0 0,0.41 4.81l3.19,0.61a26,26 0,0 0,3.59 8.74l-1.79,2.64a29,29 0,0 0,6.8 6.82l2.67,-1.82a26,26 0,0 0,8.72 3.63l0.6,3.14A29,29 0,0 0,54 83,29 29,0 0,0 58.81,82.59l0.61,-3.19a26,26 0,0 0,8.74 -3.59l2.64,1.79a29,29 0,0 0,6.82 -6.8l-1.82,-2.67a26,26 0,0 0,3.63 -8.72l3.14,-0.6A29,29 0,0 0,83 54,29 29,0 0,0 82.59,49.19l-3.19,-0.61a26,26 0,0 0,-3.59 -8.74l1.79,-2.64a29,29 0,0 0,-6.8 -6.82l-2.67,1.82a26,26 0,0 0,-8.72 -3.63L58.81,25.44A29,29 0,0 0,54 25ZM54,35A19,19 0,0 1,73 54,19 19,0 0,1 54,73 19,19 0,0 1,35 54,19 19,0 0,1 54,35Z"/>
</group>
<group>
<clip-path
android:pathData="m54,25a29,29 0,0 0,-4.81 0.41l-0.61,3.19a26,26 0,0 0,-8.74 3.59l-2.64,-1.79a29,29 0,0 0,-6.82 6.8l1.82,2.67a26,26 0,0 0,-3.63 8.72l-3.14,0.6A29,29 0,0 0,25 54a29,29 0,0 0,0.41 4.81l3.19,0.61a26,26 0,0 0,3.59 8.74l-1.79,2.64a29,29 0,0 0,6.8 6.82l2.67,-1.82a26,26 0,0 0,8.72 3.63l0.6,3.14A29,29 0,0 0,54 83,29 29,0 0,0 58.81,82.59l0.61,-3.19a26,26 0,0 0,8.74 -3.59l2.64,1.79a29,29 0,0 0,6.82 -6.8l-1.82,-2.67a26,26 0,0 0,3.63 -8.72l3.14,-0.6A29,29 0,0 0,83 54,29 29,0 0,0 82.59,49.19l-3.19,-0.61a26,26 0,0 0,-3.59 -8.74l1.79,-2.64a29,29 0,0 0,-6.8 -6.82l-2.67,1.82a26,26 0,0 0,-8.72 -3.63L58.81,25.44A29,29 0,0 0,54 25Z"/>
</group>
<group>
<clip-path
android:pathData="m54,25a29,29 0,0 0,-4.81 0.41l-0.61,3.19a26,26 0,0 0,-8.74 3.59l-2.64,-1.79a29,29 0,0 0,-6.82 6.8l1.82,2.67a26,26 0,0 0,-3.63 8.72l-3.14,0.6A29,29 0,0 0,25 54a29,29 0,0 0,0.41 4.81l3.19,0.61a26,26 0,0 0,3.59 8.74l-1.79,2.64a29,29 0,0 0,6.8 6.82l2.67,-1.82a26,26 0,0 0,8.72 3.63l0.6,3.14A29,29 0,0 0,54 83,29 29,0 0,0 58.81,82.59l0.61,-3.19a26,26 0,0 0,8.74 -3.59l2.64,1.79a29,29 0,0 0,6.82 -6.8l-1.82,-2.67a26,26 0,0 0,3.63 -8.72l3.14,-0.6A29,29 0,0 0,83 54,29 29,0 0,0 82.59,49.19l-3.19,-0.61a26,26 0,0 0,-3.59 -8.74l1.79,-2.64a29,29 0,0 0,-6.8 -6.82l-2.67,1.82a26,26 0,0 0,-8.72 -3.63L58.81,25.44A29,29 0,0 0,54 25Z"/>
</group>
<path
android:pathData="M54,43.01A11,11 0,0 0,47.68 45.02A15,15 0,0 1,48 45.01A15,15 0,0 1,63 60.01A15,15 0,0 1,62.98 60.34A11,11 0,0 0,65 54.01A11,11 0,0 0,54 43.01zM48,48.51A11.5,11.5 0,0 0,44.12 49.19A11,11 0,0 0,43 53.76A8,8 0,0 1,48 52.01A8,8 0,0 1,56 60.01A8,8 0,0 1,54.24 64.99A11,11 0,0 0,58.8 63.89A11.5,11.5 0,0 0,59.5 60.01A11.5,11.5 0,0 0,48 48.51zM48,56.01A4,4 0,0 0,44 60.01A4,4 0,0 0,48 64.01A4,4 0,0 0,52 60.01A4,4 0,0 0,48 56.01z"
android:strokeLineJoin="round"
android:strokeWidth="1"
android:fillColor="#000000"
android:strokeColor="#00000000"
android:strokeLineCap="butt"/>
<path
android:pathData="M54,28A26,26 0,0 0,49.74 28.36L49.27,31.52A23,23 0,0 0,41.44 34.74L38.9,32.87A26,26 0,0 0,32.87 38.89L34.75,41.45A23,23 0,0 0,31.5 49.27L28.38,49.74A26,26 0,0 0,28 54A26,26 0,0 0,28.36 58.26L31.52,58.73A23,23 0,0 0,34.74 66.56L32.87,69.1A26,26 0,0 0,38.89 75.13L41.45,73.25A23,23 0,0 0,49.27 76.5L49.74,79.62A26,26 0,0 0,54 80A26,26 0,0 0,58.26 79.64L58.73,76.48A23,23 0,0 0,66.56 73.26L69.1,75.13A26,26 0,0 0,75.13 69.11L73.25,66.55A23,23 0,0 0,76.5 58.73L79.62,58.26A26,26 0,0 0,80 54A26,26 0,0 0,79.64 49.74L76.48,49.27A23,23 0,0 0,73.26 41.44L75.13,38.9A26,26 0,0 0,69.11 32.87L66.55,34.75A23,23 0,0 0,58.73 31.5L58.26,28.38A26,26 0,0 0,54 28zM54,35A19,19 0,0 1,73 54A19,19 0,0 1,54 73A19,19 0,0 1,35 54A19,19 0,0 1,54 35z"
android:strokeLineJoin="round"
android:strokeWidth="0.89999998"
android:fillColor="#000000"
android:strokeColor="#00000000"
android:strokeLineCap="round"/>
</vector>
8 changes: 5 additions & 3 deletions app/src/main/res/mipmap-anydpi-v26/launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/launcher_background"/>
<foreground android:drawable="@drawable/launcher_foreground"/>
</adaptive-icon>
<background android:drawable="@drawable/launcher_background" />
<foreground android:drawable="@drawable/launcher_foreground" />

<monochrome android:drawable="@drawable/launcher_monochrome" />
</adaptive-icon>

0 comments on commit a299df8

Please sign in to comment.