Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 6 tasks
mattleibow opened this issue Nov 11, 2022 · 1 comment
Open
3 of 6 tasks

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

mattleibow opened this issue Nov 11, 2022 · 1 comment
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer proposal/open
Milestone

Comments

@mattleibow
Copy link
Member

mattleibow commented Nov 11, 2022

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:

  • Adaptive shaped
  • Adaptive round
  • Legacy none

We are missing:

  • Legacy round
  • Legacy shaped (square, squircle, circle, rounded square)
  • Legacy alternate shaped (vertical, horizontal)

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:

  • None (current and default)
  • Square
  • Circle
  • Rounded Square
  • Squircle
  • Vertical
  • Horizontal

Intended Use-Case

More things to support typical scenarios.

@mattleibow mattleibow added proposal/open area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer labels Nov 11, 2022
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Nov 17, 2022
@ghost
Copy link

ghost commented Nov 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer proposal/open
Projects
None yet
Development

No branches or pull requests

2 participants