ActivityManager icon indicating copy to clipboard operation
ActivityManager copied to clipboard

Support transparent icons for shortcuts

Open Zegnat opened this issue 1 year ago • 1 comments

I am not actually sure if this is a problem with Activity Manager or with my launcher. But as my launcher is a proprietary package from the phone manufacturer (Nothing Launcher) I will start here.

I use Arcticons for all my application icons, and would like to use them for my activity shortcut as well. These are outline only icons with full transparency. This does not seem to work when creating shortcuts. Instead the shortcut will get a solid white background.

Can Activity Manager somehow instruct the shortcut to not be given a background at all? Is there a problem with using transparent PNGs?

It could also be that I am doing something wrong, please let me know what else I can try!

What follows is the process to reproduce this, with screenshots.


I will be using the following image as the icon for my tests:

Attachment: a 256 by 256 pixel PNG image, converted from the Arcticons Instagram logo SVG.

When I chose the PNG as my image for the shortcut, the preview in Activity Manager looks correct:

Screenshot: the Create shortcut modal within Activity Manager, showing the Arcticons Instagram icon.

After pressing “Create”, the system modal shows a white square with rounded corners (and a circle in the middle?):

Screenshot: the system modal for dragging a widget (shortcut) onto the home screen, showing a white square widget with a light grey circle in its middle.

Once added to the home screen, my launcher modifies the icon to be circular, but it is still white:

Screenshot: Android home screen with 5 icons on the bottom row (dock) and above the dock a singular white icon that is the newly created shortcut.

Zegnat avatar Aug 08 '24 09:08 Zegnat

It depends on the launcher how to handle the shortcut icon. From the application side, I do everything possible to preserve the icon alpha channel.

The default launcher has the same problem, it creates an icon with a background. It's unlikely that I can do anything here.

sdex avatar Aug 18 '24 14:08 sdex

There is nothing to do on the app's side, supporting transparent icons is a launcher's responsibility.

sdex avatar Feb 16 '25 08:02 sdex