Add adaptive icon

master
Skylar Ittner 3 years ago
parent 3707d0c064
commit 0e73bf7358

@ -21,17 +21,17 @@
<platform name="android">
<allow-intent href="market:*" />
<preference name="HeaderColor" value="#82b1ff" />
<preference name="StatusBarBackgroundColor" value="#82b1ff" />
<preference name="StatusBarBackgroundColor" value="#a8defc" />
<preference name="StatusBarStyle" value="default" />
<!-- <resource-file src="src/android/BackgroundFetchHeadlessTask.java" target="app/src/main/java/com/transistorsoft/cordova/backgroundfetch/BackgroundFetchHeadlessTask.java" /> -->
<!-- <resource-file src="/res/android/drawable/ic_launcher_background.xml" target="/app/src/main/res/drawable/ic_launcher_background.xml" />
<resource-file src="/res/android/drawable/ic_launcher_background.xml" target="/app/src/main/res/drawable/ic_launcher_background.xml" />
<resource-file src="/res/android/drawable/ic_launcher_foreground.xml" target="/app/src/main/res/drawable/ic_launcher_foreground.xml" />
<resource-file src="res/android/mipmap-anydpi-v26/ic_launcher.xml" target="app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
<icon background="res/android/drawable/ic_launcher_background.xml" density="mdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-mdpi/ic_launcher.png" />
<icon background="res/android/drawable/ic_launcher_background.xml" density="hdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-hdpi/ic_launcher.png" />
<icon background="res/android/drawable/ic_launcher_background.xml" density="xhdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-xhdpi/ic_launcher.png" />
<icon background="res/android/drawable/ic_launcher_background.xml" density="xxhdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-xxhdpi/ic_launcher.png" />
<icon background="res/android/drawable/ic_launcher_background.xml" density="xxxhdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-xxxhdpi/ic_launcher.png" /> -->
<icon background="res/android/drawable/ic_launcher_background.xml" density="xxxhdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-xxxhdpi/ic_launcher.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />

File diff suppressed because one or more lines are too long

@ -0,0 +1,69 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.46325675"
android:scaleY="0.46325675"
android:translateX="22.621304"
android:translateY="22.621304">
<path
android:pathData="m18.377,67.736l98.715,0l-7.979,28.191l-98.715,0z"
android:fillColor="#a5d6a7"/>
<path
android:pathData="m26.357,39.546l98.715,0l-7.979,28.191l-98.715,0z"
android:fillColor="#d0f2fc"/>
<path
android:pathData="m28.008,72.038l9.656,0l-0.446,2.101l-7.258,0l-0.913,4.287l6.282,0l-0.403,1.974l-6.303,0l-0.976,4.605l7.449,0l-0.446,2.101l-9.847,0z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m41.233,81.567 l-2.653,-5.56l2.419,0l1.698,3.799 0.106,0.361 0.255,-0.361 3.311,-3.799l2.419,0l-5.008,5.56 2.695,5.539l-2.441,0l-1.719,-3.778 -0.127,-0.34 -0.233,0.34 -3.332,3.778l-2.441,0z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m50.994,76.007l2.058,0l-0.424,1.995q0.828,-0.997 1.91,-1.592t2.292,-0.594q0.913,0 1.634,0.361t1.21,0.997q0.509,0.615 0.764,1.464 0.276,0.828 0.276,1.783 0,1.337 -0.488,2.589t-1.337,2.207q-0.828,0.955 -1.931,1.528 -1.082,0.573 -2.292,0.573 -1.273,0 -2.101,-0.637 -0.806,-0.637 -1.146,-1.655l-1.401,6.6l-2.334,0zM54.326,85.324q0.785,0 1.507,-0.403 0.722,-0.403 1.252,-1.04 0.552,-0.637 0.87,-1.443 0.318,-0.828 0.318,-1.655 0,-0.615 -0.17,-1.146 -0.17,-0.552 -0.509,-0.955 -0.318,-0.403 -0.785,-0.637t-1.04,-0.233q-0.424,0 -0.913,0.17 -0.467,0.17 -0.934,0.467 -0.446,0.297 -0.828,0.7 -0.382,0.382 -0.594,0.849l-0.637,2.907q0.191,1.019 0.849,1.719 0.658,0.7 1.613,0.7z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m64.479,76.007l2.165,0l-0.552,2.483q0.806,-1.146 1.825,-1.846t2.016,-0.7q0.212,0 0.318,0.021 0.127,0 0.233,0.021l-0.446,2.037q-1.273,0.042 -2.377,0.637 -1.104,0.573 -1.783,1.655l-1.443,6.791l-2.334,0z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m74.786,87.316q-1.061,0 -1.889,-0.361 -0.806,-0.361 -1.379,-0.976 -0.573,-0.637 -0.87,-1.486 -0.297,-0.87 -0.297,-1.868 0,-1.358 0.509,-2.589 0.531,-1.231 1.443,-2.165 0.934,-0.934 2.186,-1.486 1.273,-0.573 2.738,-0.573 1.719,0 2.738,0.785 1.04,0.764 1.04,2.271 0,3.48 -6.218,3.48 -0.913,0 -2.058,-0.064l0,0.382q0,0.615 0.149,1.146 0.149,0.531 0.446,0.934 0.297,0.403 0.764,0.637 0.467,0.212 1.104,0.212 0.913,0 1.761,-0.446 0.849,-0.467 1.337,-1.252l1.846,0.573q-0.403,0.637 -0.997,1.167 -0.573,0.509 -1.273,0.891 -0.7,0.361 -1.486,0.573 -0.785,0.212 -1.592,0.212zM76.93,77.532q-0.764,0 -1.401,0.276 -0.637,0.255 -1.125,0.7t-0.828,1.04q-0.34,0.573 -0.552,1.21 0.976,0.064 1.804,0.064 1.125,0 1.889,-0.127 0.764,-0.149 1.231,-0.382 0.488,-0.255 0.679,-0.594 0.212,-0.361 0.212,-0.785 0,-0.722 -0.509,-1.061 -0.509,-0.34 -1.401,-0.34z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m85.947,87.316q-1.295,0 -2.462,-0.424 -1.167,-0.446 -1.91,-1.252l1.252,-1.486q1.592,1.464 3.417,1.464 1.082,0 1.74,-0.488 0.658,-0.488 0.658,-1.295 0,-0.573 -0.552,-0.87 -0.531,-0.297 -1.677,-0.615 -0.806,-0.233 -1.401,-0.446 -0.594,-0.233 -0.976,-0.509 -0.382,-0.297 -0.573,-0.658 -0.191,-0.361 -0.191,-0.849 0,-0.934 0.403,-1.677 0.403,-0.764 1.082,-1.295t1.57,-0.806q0.891,-0.297 1.889,-0.297 1.188,0 2.122,0.382 0.934,0.382 1.613,1.104l-1.295,1.401q-0.615,-0.615 -1.337,-0.913 -0.722,-0.318 -1.507,-0.318 -0.934,0 -1.592,0.446 -0.658,0.446 -0.658,1.358 0,0.531 0.446,0.806 0.446,0.255 1.486,0.531 0.891,0.233 1.549,0.488t1.082,0.573q0.446,0.297 0.658,0.7t0.212,0.934q0,0.891 -0.382,1.634 -0.361,0.722 -1.04,1.252 -0.658,0.531 -1.592,0.828 -0.934,0.297 -2.037,0.297z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m96.678,87.316q-1.295,0 -2.462,-0.424 -1.167,-0.446 -1.91,-1.252l1.252,-1.486q1.592,1.464 3.417,1.464 1.082,0 1.74,-0.488 0.658,-0.488 0.658,-1.295 0,-0.573 -0.552,-0.87 -0.531,-0.297 -1.677,-0.615 -0.806,-0.233 -1.401,-0.446 -0.594,-0.233 -0.976,-0.509 -0.382,-0.297 -0.573,-0.658 -0.191,-0.361 -0.191,-0.849 0,-0.934 0.403,-1.677 0.403,-0.764 1.082,-1.295t1.57,-0.806q0.891,-0.297 1.889,-0.297 1.188,0 2.122,0.382 0.934,0.382 1.613,1.104l-1.295,1.401q-0.615,-0.615 -1.337,-0.913 -0.722,-0.318 -1.507,-0.318 -0.934,0 -1.592,0.446 -0.658,0.446 -0.658,1.358 0,0.531 0.446,0.806 0.446,0.255 1.486,0.531 0.891,0.233 1.549,0.488t1.082,0.573q0.446,0.297 0.658,0.7t0.212,0.934q0,0.891 -0.382,1.634 -0.361,0.722 -1.04,1.252 -0.658,0.531 -1.592,0.828 -0.934,0.297 -2.037,0.297z"
android:strokeWidth="1.1409"
android:fillColor="#1b5e20"/>
<path
android:pathData="m39.073,46.214l2.398,0l-1.337,6.303l7.046,0l1.337,-6.303l2.377,0l-3.205,15.067l-2.377,0l1.422,-6.643l-7.046,0l-1.422,6.643l-2.398,0z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
<path
android:pathData="m56.03,61.493q-1.061,0 -1.889,-0.361 -0.806,-0.361 -1.379,-0.976 -0.573,-0.637 -0.87,-1.486 -0.297,-0.87 -0.297,-1.868 0,-1.358 0.509,-2.589 0.531,-1.231 1.443,-2.165 0.934,-0.934 2.186,-1.486 1.273,-0.573 2.738,-0.573 1.719,0 2.738,0.785 1.04,0.764 1.04,2.271 0,3.48 -6.218,3.48 -0.913,0 -2.058,-0.064l0,0.382q0,0.615 0.149,1.146t0.446,0.934 0.764,0.637q0.467,0.212 1.104,0.212 0.913,0 1.761,-0.446 0.849,-0.467 1.337,-1.252l1.846,0.573q-0.403,0.637 -0.997,1.167 -0.573,0.509 -1.273,0.891 -0.7,0.361 -1.486,0.573t-1.592,0.212zM58.174,51.71q-0.764,0 -1.401,0.276 -0.637,0.255 -1.125,0.7t-0.828,1.04q-0.34,0.573 -0.552,1.21 0.976,0.064 1.804,0.064 1.125,0 1.889,-0.127 0.764,-0.149 1.231,-0.382 0.488,-0.255 0.679,-0.594 0.212,-0.361 0.212,-0.785 0,-0.722 -0.509,-1.061t-1.401,-0.34z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
<path
android:pathData="m65.811,61.451q-0.976,0 -1.507,-0.467 -0.509,-0.467 -0.509,-1.337 0,-0.17 0.021,-0.34 0.021,-0.191 0.064,-0.382l2.78,-13.136l2.313,0l-2.589,12.288q-0.064,0.233 -0.064,0.424 0,0.424 0.233,0.658 0.255,0.233 0.679,0.233 0.233,0 0.552,-0.085t0.615,-0.191l-0.085,1.825q-0.552,0.233 -1.252,0.361 -0.7,0.149 -1.252,0.149z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
<path
android:pathData="m74.961,61.493q-1.061,0 -1.889,-0.361 -0.806,-0.361 -1.379,-0.976 -0.573,-0.637 -0.87,-1.486 -0.297,-0.87 -0.297,-1.868 0,-1.358 0.509,-2.589 0.531,-1.231 1.443,-2.165 0.934,-0.934 2.186,-1.486 1.273,-0.573 2.738,-0.573 1.719,0 2.738,0.785 1.04,0.764 1.04,2.271 0,3.48 -6.218,3.48 -0.913,0 -2.058,-0.064l0,0.382q0,0.615 0.149,1.146t0.446,0.934q0.297,0.403 0.764,0.637 0.467,0.212 1.104,0.212 0.913,0 1.761,-0.446 0.849,-0.467 1.337,-1.252l1.846,0.573q-0.403,0.637 -0.997,1.167 -0.573,0.509 -1.273,0.891 -0.7,0.361 -1.486,0.573t-1.592,0.212zM77.104,51.71q-0.764,0 -1.401,0.276 -0.637,0.255 -1.125,0.7t-0.828,1.04q-0.34,0.573 -0.552,1.21 0.976,0.064 1.804,0.064 1.125,0 1.889,-0.127 0.764,-0.149 1.231,-0.382 0.488,-0.255 0.679,-0.594 0.212,-0.361 0.212,-0.785 0,-0.722 -0.509,-1.061 -0.509,-0.34 -1.401,-0.34z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
<path
android:pathData="m84.657,50.182l2.101,0l-0.467,2.228q0.828,-1.125 2.101,-1.761 1.273,-0.658 2.674,-0.658 0.7,0 1.167,0.191t0.743,0.552q0.297,0.34 0.424,0.806 0.127,0.467 0.127,1.04 0,0.446 -0.085,0.934 -0.064,0.488 -0.17,0.997l-1.422,6.77l-2.334,0l1.316,-6.218q0.085,-0.403 0.127,-0.722 0.042,-0.34 0.042,-0.637 0,-1.634 -1.358,-1.634 -0.467,0 -0.976,0.191 -0.509,0.191 -0.997,0.552 -0.488,0.34 -0.934,0.828 -0.424,0.467 -0.7,1.04l-1.422,6.6l-2.334,0z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
<path
android:pathData="m99.434,61.493q-0.934,0 -1.677,-0.361 -0.722,-0.361 -1.231,-0.976 -0.509,-0.615 -0.785,-1.443 -0.255,-0.849 -0.255,-1.804 0,-1.358 0.488,-2.61 0.509,-1.252 1.358,-2.207t1.952,-1.528 2.313,-0.573q1.21,0 2.016,0.658 0.828,0.637 1.167,1.634l0.446,-2.08l2.356,0l-1.783,8.319q-0.021,0.106 -0.042,0.191 0,0.064 0,0.127 0,0.424 0.488,0.446l-0.424,1.995q-0.297,0.042 -0.552,0.064 -0.233,0.042 -0.403,0.042 -1.379,0 -1.379,-1.104 0,-0.34 0.149,-1.019 -0.806,1.082 -1.952,1.655t-2.25,0.573zM100.452,59.498q0.424,0 0.891,-0.17 0.488,-0.17 0.934,-0.467 0.467,-0.297 0.849,-0.7t0.615,-0.87l0.594,-2.907q-0.064,-0.509 -0.297,-0.934 -0.212,-0.446 -0.552,-0.764 -0.34,-0.34 -0.743,-0.509 -0.403,-0.191 -0.849,-0.191 -0.806,0 -1.528,0.403 -0.7,0.403 -1.252,1.04 -0.531,0.637 -0.849,1.464 -0.318,0.806 -0.318,1.634 0,0.637 0.17,1.188 0.17,0.531 0.488,0.934 0.34,0.382 0.806,0.615t1.04,0.233z"
android:strokeWidth="1.1409"
android:fillColor="#0d47a1"/>
</group>
</vector>

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<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"/>
</adaptive-icon>

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<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"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.7 KiB

@ -96,7 +96,7 @@ function setAppTheme(theme) {
$("#app").removeClass("theme-dark");
if (platform_type == "cordova" && cordova.platformId == 'android' && typeof StatusBar !== 'undefined') {
StatusBar.styleDefault();
StatusBar.backgroundColorByHexString("#82b1ff");
StatusBar.backgroundColorByHexString("#a8defc");
}
} else if (theme == "dark") {
$("#app").addClass("theme-dark");

Loading…
Cancel
Save