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

Support transparent icons for shortcuts #93

Open
Zegnat opened this issue Aug 8, 2024 · 1 comment
Open

Support transparent icons for shortcuts #93

Zegnat opened this issue Aug 8, 2024 · 1 comment

Comments

@Zegnat
Copy link

Zegnat commented Aug 8, 2024

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.

@sdex
Copy link
Owner

sdex commented Aug 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants