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

Adaptive Icon Scaling for Android #566

Closed

Conversation

claudius-kienle
Copy link

@claudius-kienle claudius-kienle commented Jul 12, 2024

This is a rebased version of pull request #181, updated to work with the dependencies currently used in flutter_launcher_icons:master.

Since the adaptive icons seems to have extra padding when compared to their iOS counter parts I added a new scaling factor parameter so that the image for the adaptive icon can be scaled before finally scaling down to icon size. This scaling is done by enlarging the canvas, not scaling down the original image, so image quality should in theory be better. The two new yaml parameters are:

adaptive_icon_foreground_scale_factor: 0.66
adaptive_icon_foreground_scale_fill_color: "#FFFFFFFF" #probably not needed as default is fill transparent

Adding background image scaling will be next.

@claudius-kienle claudius-kienle changed the title added scaling by use of adaptive_icon_foreground_scale_factor Adaptive Icon Scaling for Android Jul 12, 2024
@claudius-kienle claudius-kienle force-pushed the master branch 2 times, most recently from 10be070 to 30974de Compare July 12, 2024 10:26
@MarkOSullivan94
Copy link
Collaborator

Thank you for this contribution however this should be fixed now with #563

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

Successfully merging this pull request may close these issues.

3 participants