mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Update icon badges to match spec
- Size defined as percentage of app icon size
- Width changes when there are 2 or 3 digits (round rect)
- Offset slightly away from the app icon
- Had to move drawing to BubbleTextView instead of
FastBitmapDrawable
- Hide badge when dragging and while popup is open
- Tweaks for some color/text parameters
Bug: 35744066
Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
This commit is contained in:
@@ -197,8 +197,6 @@ public class DeviceProfile {
|
||||
hotseatBarBottomPaddingPx = 0;
|
||||
hotseatLandGutterPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_gutter_width);
|
||||
|
||||
mBadgeRenderer = new BadgeRenderer(context);
|
||||
|
||||
// Determine sizes.
|
||||
widthPx = width;
|
||||
heightPx = height;
|
||||
@@ -213,6 +211,9 @@ public class DeviceProfile {
|
||||
// Calculate the remaining vars
|
||||
updateAvailableDimensions(dm, res);
|
||||
computeAllAppsButtonSize(context);
|
||||
|
||||
// This is done last, after iconSizePx is calculated above.
|
||||
mBadgeRenderer = new BadgeRenderer(context, iconSizePx);
|
||||
}
|
||||
|
||||
DeviceProfile getMultiWindowProfile(Context context, Point mwSize) {
|
||||
|
||||
Reference in New Issue
Block a user