mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Folder polish: unbold folder title, ensure icons not cropped in folder.
- Ensure folder items are scaled to fit within the height/width in 4x5 mode. - This bug surfaced now since we increased the icon size. Bug: 194356039 Test: set display to large, set font to large Change-Id: Ie360ca67c3c91649a471bce920b2fc6a82fb9661
This commit is contained in:
@@ -649,8 +649,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