DescriptionFollow Material spec for icons when adding web apps to home screen.
This makes a few visual adjustments to the icons that are added to the
home screen via "Add to home screen":
- Icons aren't cropped. Previously icons were cropped by 1px, which
caused circular icons to look broken.
- We now add padding around the icon in accordance with the Material
spec for icons [1]. We add padding such that the entire icon width
with padding is 192 units, while the icon width without padding is
176 units.
- To minimize scaling artifacts, icons aren't resized to
getLauncherLargeIconSize(). getLauncherLargeIconSize() is just a
guess at the launcher icon size, and is often wrong -- the launcher
can shows icons at any size it pleases. Instead of resizing the icon
to the supposed launcher size and then having the launcher resize the
icon again, we leave the icon at its original size and let the
launcher do a single rescaling. Unless the icon is much too big; then
we do scale it down.
[1] The Material spec for icons:
https://www.google.com/design/spec/style/icons.html#icons-product-icons
BUG=530329
Committed: https://crrev.com/a584b9ec2e70e2ea2a56ca9698596ad5e5afea81
Cr-Commit-Position: refs/heads/master@{#356967}
Patch Set 1 #
Total comments: 8
Patch Set 2 : renamed "generate..." to "create..." #Patch Set 3 : Dan's comments #
Messages
Total messages: 14 (4 generated)
|