Skip to content

Improve Android icons #67

@AoE-Maniac

Description

@AoE-Maniac

I've noticed that my app icons get an ugly white border on some Android smartphones, depending on the shape of the homescreen icons. It seems that https://developer.android.com/develop/ui/compose/system/icon_design_adaptive is now the way to go, and manually doing what is described there did indeed remove the border.

In short, a minimal fix for the Android project generation would be to add the icon once more as a drawable(*), sized 108x108 px, and then reference it in app\src\main\res\mipmap-anydpi-v26\ic_launcher.xml like this:

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher" />
    <foreground android:drawable="@drawable/ic_launcher" />
</adaptive-icon>

Naturally it would be awesome if kmake could do that automatically.

And maybe kmake could even be extended to (optionally) support more than one icon file, because using one image for all those different kind of icons does not use the full potential of the system. So ideally, one could not only provide an icon.png but also an icon_round.png, icon_foreground.png, icon_background.png and icon_monochrome.png and kmake would then use those instead if provided.

(*) Maybe it could also be a mipmap when done correctly, but I couldn't get that to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions