Merge pull request #4411 from Bubu/icon_background

add background color to adaptive icons
This commit is contained in:
cketti 2020-01-02 23:04:54 +01:00 committed by GitHub
commit 7cdba07a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 13 deletions

View file

@ -48,7 +48,6 @@
android:allowTaskReparenting="false"
android:usesCleartextTraffic="true"
android:icon="@drawable/ic_launcher"
android:roundIcon="@drawable/ic_launcher_round"
android:label="@string/app_name"
android:theme="@style/Theme.K9.Startup"
android:resizeableActivity="true"

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="icon_background">#E4D9FF</color>
</resources>

View file

@ -2,6 +2,6 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/icon_background"/>
<foreground>
<inset android:drawable="@mipmap/icon" android:inset="20%"/>
<inset android:drawable="@mipmap/icon" android:inset="23%"/>
</foreground>
</adaptive-icon>

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/icon_background"/>
<foreground>
<inset android:drawable="@mipmap/icon" android:inset="24%"/>
</foreground>
</adaptive-icon>

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="ic_launcher">@mipmap/ic_launcher</drawable>
<drawable name="ic_launcher_round">@mipmap/ic_launcher_round</drawable>
</resources>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="icon_background">#ffffff</color>
<color name="icon_background">#FFDAE1</color>
<color name="light_black">#444444</color>

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="ic_launcher">@mipmap/icon</drawable>
<drawable name="ic_launcher_round">@mipmap/icon</drawable>
</resources>