Skip to content

fix(maui): add safe-zone padding to Android adaptive app icon - #171

Open
fboucher wants to merge 1 commit into
mainfrom
fix/167-android-icon-crop
Open

fix(maui): add safe-zone padding to Android adaptive app icon#171
fboucher wants to merge 1 commit into
mainfrom
fix/167-android-icon-crop

Conversation

@fboucher

Copy link
Copy Markdown
Owner

Fixes #167.

Summary

This PR fixes Android adaptive app icon cropping by scaling down and centering the foreground SVG artwork inside the inner 66% safe zone of �ppiconfg.svg.

Changes

  • Updated the SVG transform matrix in �ppiconfg.svg to scale artwork to 660px height (66% safe-zone) with 170px vertical margin.
  • Removed hardcoded background rect and squircle clip path in #dark-icon so the foreground SVG remains transparent.
  • Verified builds and tests on all MAUI targets.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
NoteBookmark.AIServices 97% 64%
NoteBookmark.Api 89% 79%
NoteBookmark.BlazorApp 5% 10%
NoteBookmark.Domain 86% 75%
NoteBookmark.ServiceDefaults 96% 75%
NoteBookmark.SharedUI 14% 16%
Summary 53% (916 / 1714) 43% (228 / 525)

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.

The App icon on Android is cropped

1 participant