Sanmill
Sanmill copied to clipboard
[Feature Request] [Android] Themed / Monochrome App Icon
Is your feature request related to a problem? Please describe. I like my main Android menu being homogeneous & have all the icons be in the same theme
Describe the solution you'd like I would like to see the themed / monochrome app icon functionality for Android 13+ being implemented.
Describe alternatives you've considered Don't implement it. I respect the developers' choice.
Additional context Android 13 Announcement Android Developer Documentation
I recently came across the tool, IconKitchen, which seems to be a fantastic resource for generating app icons. I am currently in the process of designing icons for a project and am very interested in utilizing IconKitchen for this purpose.
I have prepared the necessary design files and I'm wondering if I could simply generate the icons using IconKitchen and then directly load them into my project. Could you kindly confirm if this process would work seamlessly with IconKitchen? Additionally, if there are any specific file formats or preparations required before loading them into the tool, I would greatly appreciate your guidance on that.
Looking forward to your response and any tips you might have to streamline the icon creation process.
I recently came across the tool, IconKitchen, which seems to be a fantastic resource for generating app icons. I am currently in the process of designing icons for a project and am very interested in utilizing IconKitchen for this purpose.
I have prepared the necessary design files and I'm wondering if I could simply generate the icons using IconKitchen and then directly load them into my project. Could you kindly confirm if this process would work seamlessly with IconKitchen?
I honestly have no idea how well this tool would work since I've never used it before. Therefore, it is why I will explain the icon creation process below. However, I will look further into this tool & will tell you if it seems easier to use for this specific usecase.
Looking forward to your response and any tips you might have to streamline the icon creation process.
I know that for Themed / Monochrome app icons to work, you must first implement Adaptive Icons, which isn't the case for your project.
You need to create an ic_launcher.xml
/ ic_launcher_round.xml
(for round icon) in src/main/res/mipmap-anydpi-v26
, then it must look something like this inside of them:
<?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" /> // or @color
<foreground android:drawable="@drawable/ic_launcher_foreground" /> // or @mipmap
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
-
ic_launcher_background
is either:- a color value in
res/values/ic_launcher_background.xml
orres/values/colors.xml
:
- a color value in
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name="ic_launcher_background"
>hex_color</color>
</resources>
-
- a VectorDrawable in
res/drawable/ic_launcher_background.xml
- a VectorDrawable in
-
ic_launcher_foreground
is either:- A VectorDrawable in
res/drawable-v26/ic_launcher_foreground.xml
- A [MipMap] / Bitmap in
res/mipmap-*dpi/ic_launcher_foreground.png // or webp
- A VectorDrawable in
-
ic_launcher_monochrome
is a VectorDrawable, eitheric_launcher_foreground.xml
or it's own separateic_launcher_monochrome.xml
inres/drawable-v33
depending on the complexity of the main VectorDrawable.
VectorDrawables can be created by importing them in Android Studio or by hand.
Mipmaps can either be made by hand then scaled down for each DPI level or can be created from a VectorDrawable using the Android Studio Image Asset Studio
To finish, you must only add android:roundIcon
in AndroidManifest.xml
(optional)