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

Android 13 (Material Design 3) app icon #4416

Closed
legofahrrad opened this issue Sep 26, 2022 · 4 comments
Closed

Android 13 (Material Design 3) app icon #4416

legofahrrad opened this issue Sep 26, 2022 · 4 comments
Assignees

Comments

@legofahrrad
Copy link
Contributor

Use case
App icons on Android 13 can adapt their colour to the background image of the home screen, which looks really cool :)

Proposed Solution
Make the SC icon also adaptable, this instruction might be useful: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive

#3650 may be related, though this issue is just about the app icon and not the style in the app itself.

Screenshot
grafik
(just poorly edited with gimp)

@westnordost
Copy link
Member

It is already adaptive (separate foreground and background).

@westnordost westnordost closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2022
@FloEdelmann
Copy link
Member

But there is no monochrome layer:

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

@FloEdelmann
Copy link
Member

See https://developer.android.com/develop/ui/views/launch/icon_design_adaptive#design-adaptive-icons:

If you want to opt-in to supporting user theming of app icons, provide a single layer for the monochrome version of the icon.

and https://developer.android.com/develop/ui/views/launch/icon_design_adaptive#add_your_adaptive_icon_to_your_app (emphasis mine):

You can then use the <adaptive-icon> element to define the foreground, background, and monochromatic layer drawables for your icons. The <foreground>, <background>, and <monochrome> inner elements all support the android:drawable attribute.

@FloEdelmann FloEdelmann reopened this Sep 27, 2022
@westnordost
Copy link
Member

ic

@westnordost westnordost self-assigned this Sep 27, 2022
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

3 participants