summaryrefslogtreecommitdiff
path: root/src_ui_overrides
diff options
context:
space:
mode:
authorLucas Dupin <dupin@google.com>2020-03-17 17:11:32 -0700
committerLucas Dupin <dupin@google.com>2020-03-18 13:29:58 -0700
commit4918ed38d2a0b49f83241de2390e720fe29a143d (patch)
tree30f740f8b08af0b184352142f938ea9d4c6f2430 /src_ui_overrides
parentbc2424d7267835221ed87f73257d5085817f4040 (diff)
downloadLauncher3-4918ed38d2a0b49f83241de2390e720fe29a143d.tar.gz
Add wallpaper zoom to areas that have blur
Whenever blurring, the wallpaper should also zoom out. This is the mental model of our Depth System. Test: manual Bug: 149792636 Change-Id: I1783eb87fefeb6f917f0ba64f2c6ec8f1f2004fa
Diffstat (limited to 'src_ui_overrides')
-rw-r--r--src_ui_overrides/com/android/launcher3/uioverrides/DepthController.java (renamed from src_ui_overrides/com/android/launcher3/uioverrides/BackgroundBlurController.java)22
1 files changed, 9 insertions, 13 deletions
diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/BackgroundBlurController.java b/src_ui_overrides/com/android/launcher3/uioverrides/DepthController.java
index 75f99a9ee9..7ad85e22c3 100644
--- a/src_ui_overrides/com/android/launcher3/uioverrides/BackgroundBlurController.java
+++ b/src_ui_overrides/com/android/launcher3/uioverrides/DepthController.java
@@ -17,7 +17,7 @@
package com.android.launcher3.uioverrides;
-import android.util.IntProperty;
+import android.util.FloatProperty;
import android.view.View;
import com.android.launcher3.Launcher;
@@ -27,26 +27,22 @@ import com.android.launcher3.anim.PendingAnimation;
import com.android.launcher3.states.StateAnimationConfig;
/**
- * Controls the blur, for the Launcher surface only.
+ * Controls blur and wallpaper zoom, for the Launcher surface only.
*/
-public class BackgroundBlurController implements LauncherStateManager.StateHandler {
+public class DepthController implements LauncherStateManager.StateHandler {
- public static final IntProperty<BackgroundBlurController> BACKGROUND_BLUR =
- new IntProperty<BackgroundBlurController>("backgroundBlur") {
+ public static final FloatProperty<DepthController> DEPTH =
+ new FloatProperty<DepthController>("depth") {
@Override
- public void setValue(BackgroundBlurController blurController, int blurRadius) {}
+ public void setValue(DepthController depthController, float depth) {}
@Override
- public Integer get(BackgroundBlurController blurController) {
- return 0;
+ public Float get(DepthController depthController) {
+ return 0f;
}
};
- public BackgroundBlurController(Launcher l) {}
-
- public int getFolderBackgroundBlurAdjustment() {
- return 0;
- }
+ public DepthController(Launcher l) {}
public void setSurfaceToLauncher(View v) {}