dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.12k stars 1.73k forks source link

Add support for controlling the "compat" app icon shape #11293

Open mattleibow opened 1 year ago

mattleibow commented 1 year ago

Description

In Android 8.0 (API 26), the OS added support for adaptive icons. Resizetizer handles this just fine, however when it generates the backwards compat icon, it is just a square - or more specifically it is just drawing the background as is.

The Android 8.0 OS has some options:

image

But for older version of the OS, the developer is responsible for generating the "shape". For example, in Android Studio:

image

As you can see, there is both a round icon and a legacy icon. We already have the round adaptive icon, but still need to add the legacy versions of both the actual round image and then the shaped image (square - current, squircle, rounded square, circle)

There is also an app that can be used to test many variations: https://github.com/nickbutcher/AdaptiveIconPlayground

In summary, we have:

We are missing:

Public API Changes

Maybe all we need is an optional parameter on <MauiIcon Shape="xxx" />

This would then be a choice of a few things:

Intended Use-Case

More things to support typical scenarios.

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.