Add margin between items in folder icon to AppListConfig
The margin for small config is different than other (2 instead of 4), so it cannot be just hardcoded in folder_image. Updates how item image offset from the center of the folder icon is calculated to 1/2 (item icon size + item margin), which matches the new spec. It's little different from the existing logic, where the item icon is inset by 2 dip from the folder icon edge, but the numbers match for the current (kShared) config. BUG=996808 Change-Id: I4b5ffab257055d89ec612e60076af6cf6e24f841 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1779668Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#692849}
Showing
Please register or sign in to comment