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

Add support for Android 13 themed icons #650

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NotWoods
Copy link
Contributor

@NotWoods NotWoods commented Feb 11, 2022

Android 13 introduces an API for Themed Icons, which are monochrome icons on a colored background. This change adds support to create those icons from a web app manifest.

Note that Android requires an Adaptive Icon for this to work. Consequently, you must have a maskable icon AND a monochrome icon.

Tested with https://monochrome.fyi/manifest.json

Screenshot of Android 13 homescreen with "Monochrome" PWA icon. All icons are themed, including the PWA.

@andreban
Copy link
Member

Code looks good to me. I wonder if we'd like to have this behind a feature flag, since Android 13 is still beta and APIs might change. @PEConn and @nohe427 for thoughts.

@PEConn
Copy link
Collaborator

PEConn commented Feb 14, 2022

Code looks good to me - I agree with Andre about putting this behind a flag until the Android 13 APIs are fixed.

@andreban andreban added the enhancement New feature or request label Mar 24, 2022
@Stevie-Ray
Copy link

Hi @NotWoods and @andreban , two days ago we had the official release of Android 13 for Pixel devices.

https://developer.android.com/about/versions/13

Would be nice if this feature could be implemented so my apps will fit with the new themes icons.

Anyways thanks for your amazing work and making this possible!

@dartess
Copy link

dartess commented Dec 15, 2022

is it worth adding some description to the readme?

@ashnohe
Copy link

ashnohe commented Dec 19, 2022

hey all! love this PR. It would be awesome if this could be approved and merged now that Android 13 is no longer in beta :)

@FluorescentHallucinogen
Copy link
Contributor

@PEConn @andreban Is there anything left that prevents this pull request from merging?

@andreban
Copy link
Member

andreban commented Feb 3, 2023

I haven't tested it since Android 13 came out of beta. If anyone has a chance to do it and let me know if it works, happy to merge.

@FluorescentHallucinogen
Copy link
Contributor

@andreban

If anyone has a chance to do it and let me know if it works, happy to merge.

Could you please rebase this PR and publish alpha npm package for this branch (like ardatan/graphql-tools#2065 (comment)) for easier testing by more people?

Is that exactly what the publish-canary script in package.json does? 🤔

@andreban
Copy link
Member

Yep, that's what publish-canary does.

Copy link
Member

@andreban andreban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

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

Successfully merging this pull request may close these issues.

None yet

7 participants