Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
feat: add support for themed icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Apr 29, 2023
1 parent 65de75a commit 3fcc759
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions android/app/src/debug/res/drawable/ic_launcher_monochrome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<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.6"
android:scaleY="0.6"
android:translateX="102.4"
android:translateY="102.4">
<path
android:pathData="M 98.695268 106.00025 C 75.042214 106.00025 56.000199 125.04226 56.000199 148.69532 L 56.000199 363.30496 C 56.000199 386.958 75.042214 406.00002 98.695268 406.00002 L 413.305 406.00002 C 436.95806 406.00002 456.00007 386.958 456.00007 363.30496 L 456.00007 148.69532 C 456.00007 125.04226 436.95806 106.00025 413.305 106.00025 L 98.695268 106.00025 z M 97.228691 163.11356 L 151.35975 163.11356 C 168.21742 163.11356 182.11 165.14624 193.03783 169.21241 C 204.05037 173.27858 212.22507 179.42059 217.56191 187.63764 C 222.89876 195.85469 225.56711 206.23172 225.56711 218.76908 C 225.56711 227.24026 223.95752 234.65257 220.73846 241.00596 C 217.51941 247.35935 213.28388 252.73846 208.03175 257.14348 C 202.77961 261.54849 197.10413 265.14888 191.00488 267.94437 L 245.64392 348.88671 L 201.93238 348.88671 L 157.58573 277.60166 L 136.61957 277.60166 L 136.61957 348.88671 L 97.228691 348.88671 L 97.228691 163.11356 z M 245.64392 163.11356 L 285.41617 163.11356 L 320.35977 273.66237 C 320.95276 275.52601 321.9272 279.04157 323.28259 284.20901 C 324.63798 289.29171 325.99311 294.71324 327.34849 300.47365 C 328.78859 306.14932 329.76303 310.8509 330.27131 314.57821 C 330.77957 310.8509 331.66868 306.14932 332.93937 300.47365 C 334.29476 294.79795 335.60798 289.41884 336.87866 284.33613 C 338.23405 279.16872 339.20849 275.61073 339.80148 273.66237 L 374.99933 163.11356 L 414.77158 163.11356 L 351.61885 348.88671 L 308.66953 348.88671 L 245.64392 163.11356 z M 136.61957 195.38859 L 136.61957 245.58036 L 149.32629 245.58036 C 162.37191 245.58036 171.69019 243.42044 177.28117 239.10013 C 182.95686 234.69512 185.79486 228.25674 185.79486 219.78555 C 185.79486 210.97552 182.74532 204.70679 176.64607 200.97946 C 170.63152 197.25214 161.27084 195.38859 148.56406 195.38859 L 136.61957 195.38859 z"
android:strokeWidth="2.34111"
android:fillColor="#b9cb21"/>
</group>
</vector>
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>
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>
15 changes: 15 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,15 @@
<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.6"
android:scaleY="0.6"
android:translateX="102.4"
android:translateY="102.4">
<path
android:pathData="M 98.695268 106.00025 C 75.042214 106.00025 56.000199 125.04226 56.000199 148.69532 L 56.000199 363.30496 C 56.000199 386.958 75.042214 406.00002 98.695268 406.00002 L 413.305 406.00002 C 436.95806 406.00002 456.00007 386.958 456.00007 363.30496 L 456.00007 148.69532 C 456.00007 125.04226 436.95806 106.00025 413.305 106.00025 L 98.695268 106.00025 z M 97.228691 163.11356 L 151.35975 163.11356 C 168.21742 163.11356 182.11 165.14624 193.03783 169.21241 C 204.05037 173.27858 212.22507 179.42059 217.56191 187.63764 C 222.89876 195.85469 225.56711 206.23172 225.56711 218.76908 C 225.56711 227.24026 223.95752 234.65257 220.73846 241.00596 C 217.51941 247.35935 213.28388 252.73846 208.03175 257.14348 C 202.77961 261.54849 197.10413 265.14888 191.00488 267.94437 L 245.64392 348.88671 L 201.93238 348.88671 L 157.58573 277.60166 L 136.61957 277.60166 L 136.61957 348.88671 L 97.228691 348.88671 L 97.228691 163.11356 z M 245.64392 163.11356 L 285.41617 163.11356 L 320.35977 273.66237 C 320.95276 275.52601 321.9272 279.04157 323.28259 284.20901 C 324.63798 289.29171 325.99311 294.71324 327.34849 300.47365 C 328.78859 306.14932 329.76303 310.8509 330.27131 314.57821 C 330.77957 310.8509 331.66868 306.14932 332.93937 300.47365 C 334.29476 294.79795 335.60798 289.41884 336.87866 284.33613 C 338.23405 279.16872 339.20849 275.61073 339.80148 273.66237 L 374.99933 163.11356 L 414.77158 163.11356 L 351.61885 348.88671 L 308.66953 348.88671 L 245.64392 163.11356 z M 136.61957 195.38859 L 136.61957 245.58036 L 149.32629 245.58036 C 162.37191 245.58036 171.69019 243.42044 177.28117 239.10013 C 182.95686 234.69512 185.79486 228.25674 185.79486 219.78555 C 185.79486 210.97552 182.74532 204.70679 176.64607 200.97946 C 170.63152 197.25214 161.27084 195.38859 148.56406 195.38859 L 136.61957 195.38859 z"
android:strokeWidth="2.34111"
android:fillColor="#00e3b2"/>
</group>
</vector>
1 change: 1 addition & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/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>
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 3fcc759

Please sign in to comment.