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 monochrome icon for material you theming #47

Merged
merged 2 commits into from
May 26, 2024

Conversation

mark-pitblado
Copy link
Contributor

@mark-pitblado mark-pitblado commented May 23, 2024

Looking to add support for android themed icons supported in Android 13+ (if you are interested). I thought it would be a quick addition of a monochrome version of the foreground drawable, however this doesn't seem to be the complete fix, at least on my emulator.

It may have something to do with Theme.AppCompat, however I am not sure. Putting this up as a draft in case anyone else knows of a quick fix to get it the rest of the way there. I'll come back and work on it some more when I have time.

Docs: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive

@283375
Copy link
Contributor

283375 commented May 24, 2024

The ic_launcher_round.xml also needs a <monochrome> entry, looks like you've missed it ;)

By adding the same <monochrome android:drawable="@drawable/ic_launcher_monochrome"/> to ic_launcher_round.xml, the monochrome icon works well, and here's a preview on a real device

@mark-pitblado mark-pitblado marked this pull request as ready for review May 24, 2024 14:35
@mark-pitblado
Copy link
Contributor Author

Awesome! Thank you so much, and obvious in hindsight. Should be good to go now!

@davidtakac davidtakac merged commit d95826c into davidtakac:dev May 26, 2024
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