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: Create adaptive icon and refactor old icon usage #10533
Conversation
|
Can't we keep the old behavior in 5.0 and 6.0 by not baking a background into the Also, it doesn't seem like |
|
I'll look into it. This is just what the default adaptive icon wizard provides. |
|
I'm alright with this. I designed the Dolphin logo to be able to stand alone against any background, but a white background like that is fine. Are you able to adjust the centered-ness of the icon in an adaptive icon? One quirk of the Dolphin logo is that centering is a little weird - the whole optical centering verses weight centering thing. The centering in this PR is not bad as is but it could be made a little better. If you can adjust it, I can give you centering values based on the images you provided. |
|
I can adjust it, what values should I follow? |
|
Also @MayImilae, your bio says that you use IRC for contact. Is that still a good way to contact you besides github messages? |
|
Ok so, I did some measurements and things, and let me start with a demonstration. So with the Dolphin logo optically aligned (aligned by photoshop), if I take the outer circle and shrink it to the same size as the Dolphin logo, you get this. Everything in the above is perfectly centered with Photoshop's centering tools, but it doesn't look like it! This is how this PR is aligned currently. So to make it look centered, I need to nudge the Dolphin logo to the left a bit. So this is a 256x256 frame with the Dolphin at 60% scale, and from optically aligned center, I moved the Dolphin logo 6 pixels to the left. I don't know how the Android tools are presented, but is that enough for you to work with? |
|
That should be enough, the built-in adaptive icon wizard doesn't provide that level of granularity but I can use the image you provided as reference in photoshop for some manual edits |
|
I think it looked better with the body centered and the tail dangling off to the right. |
(*^-‘) 乃
It wasn't "body centered", it was just optically centered. Here's what body centered would look like. The centering this PR now has is the industry standard method for centering irregular shapes. You've used it every day, measure the centering of a play button and you'll be very surprised. |
|
@JosJuice I'm not sure who else to ping to say this is ready to go |
These are the recommended keylines for Android adaptive icons: We could probably make the logo a little bigger if we wanted to, though not too much. The size that this PR is using for the adaptive icons was chosen simply because it's the scaling applied by Android by default when the app only has a non-adaptive icon. I'm assuming that this scaling is a little conservative with how big it makes the icon, since some icons have important elements all the way out in the corners, unlike the Dolphin logo. @t895 You will need to squash the commits into one before this pull request can be merged. |
|
@jordan-woyak Here's a comparison to other apps, if you want to see. I would say the Dolphin logo is a bit smaller than other logos in the same style (shape on single-color background). This PR is the left Dolphin, and master is the right Dolphin. |
|
@JosJuice Well there isn't a default scaling provided by the icon tool. To prevent much conflict, I just did my best to match the scaling as seen in the current icon. Also, I should have the commits squashed soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this merged so as to not bikeshed over the size. The size is effectively the same as before this PR, and can be adjusted in a later PR if needed.
|
@JosJuice Sorry I wasn't worried about the size. I messed up and made a duplicate commit so I had to fiddle with git for a while. |
|
It was less of a note to you, and more a note to everyone else that the discussion I started about the size isn't something I think needs to block this PR. I'll merge it once it's been built. |
|
Accidentally labelled the commit as "Android: Inherit from Material3 themes and round corners on box art" when it should have been "Android: Create adaptive icon and refactor old icon usage" |







The icon now has a foreground and a background which move in certain situations. The old icon was kept in the files because of dependencies elsewhere related to the TV app I believe.
I'm using the same logo size as the original as well. (The gif makes the colors appear de-saturated)
Demo -

Note: One disadvantage of this is losing the standalone icon look in Android Lollipop (5.0) and Marshmallow (6.0).
New -

Old -
