Support transparent icons for shortcuts
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:
When I chose the PNG as my image for the shortcut, the preview in Activity Manager looks correct:
After pressing “Create”, the system modal shows a white square with rounded corners (and a circle in the middle?):
Once added to the home screen, my launcher modifies the icon to be circular, but it is still white:
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.
There is nothing to do on the app's side, supporting transparent icons is a launcher's responsibility.