Merge pull request #4411 from Bubu/icon_background
add background color to adaptive icons
This commit is contained in:
commit
7cdba07a98
7 changed files with 7 additions and 13 deletions
|
@ -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"
|
||||
|
|
4
app/ui/src/debug/res/values/colors.xml
Normal file
4
app/ui/src/debug/res/values/colors.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="icon_background">#E4D9FF</color>
|
||||
</resources>
|
|
@ -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>
|
||||
</adaptive-icon>
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue