diff options
| author | Jon Miranda <jonmiranda@google.com> | 2021-10-07 10:50:35 -0700 |
|---|---|---|
| committer | Jonathan Miranda <jonmiranda@google.com> | 2021-11-17 17:03:45 +0000 |
| commit | bc0798e040ac17f1ee4a92235dfc2439aaef4044 (patch) | |
| tree | 6fd72ed457cdf12242effd90b4e225edc03de751 | |
| parent | f71aa0ca0d182e3eb052908abf3498e83bbc6aa7 (diff) | |
Update app icon shadows.
Bug: 201332301
Test: open icon in Folder, compare to spec
Change-Id: I1ef6f3cbb9b0b870aa2f2c237d41a4d2785a7061
| -rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java | 6 | ||||
| -rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java b/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java index e24f353..96dee3b 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java +++ b/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java @@ -35,14 +35,14 @@ public class ShadowGenerator { public static final boolean ENABLE_SHADOWS = true; - public static final float BLUR_FACTOR = 1.5f/48; + public static final float BLUR_FACTOR = 1.68f/48; // Percent of actual icon size public static final float KEY_SHADOW_DISTANCE = 1f/48; - private static final int KEY_SHADOW_ALPHA = 10; + private static final int KEY_SHADOW_ALPHA = 7; // Percent of actual icon size private static final float HALF_DISTANCE = 0.5f; - private static final int AMBIENT_SHADOW_ALPHA = 7; + private static final int AMBIENT_SHADOW_ALPHA = 25; private final int mIconSize; diff --git a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java index 623ebb8..ecf0bca 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +++ b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java @@ -534,7 +534,7 @@ public abstract class BaseIconCache { * Cache class to store the actual entries on disk */ public static final class IconDB extends SQLiteCacheHelper { - private static final int RELEASE_VERSION = 31; + private static final int RELEASE_VERSION = 32; public static final String TABLE_NAME = "icons"; public static final String COLUMN_ROWID = "rowid"; |
