mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Folder polish: unbold folder title, ensure icons not cropped in folder." into sc-dev am: 3f062ab8b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15365040 Change-Id: I0fccfe7fdf32f7bcbcddb3633e34acb1c7c979f6
This commit is contained in:
@@ -657,8 +657,11 @@ public class DeviceProfile {
|
||||
int textHeight = Utilities.calculateTextHeight(folderChildTextSizePx);
|
||||
|
||||
if (isScalableGrid) {
|
||||
folderCellWidthPx = (int) (cellWidthPx * scale);
|
||||
folderCellHeightPx = (int) (cellHeightPx * scale);
|
||||
int minWidth = folderChildIconSizePx + iconDrawablePaddingPx * 2;
|
||||
int minHeight = folderChildIconSizePx + iconDrawablePaddingPx * 2 + textHeight;
|
||||
|
||||
folderCellWidthPx = (int) Math.max(minWidth, cellWidthPx * scale);
|
||||
folderCellHeightPx = (int) Math.max(minHeight, cellHeightPx * scale);
|
||||
|
||||
int borderSpacing = (int) (cellLayoutBorderSpacingOriginalPx * scale);
|
||||
folderCellLayoutBorderSpacingPx = borderSpacing;
|
||||
|
||||
Reference in New Issue
Block a user