diff --git a/quickstep/res/values-night/colors.xml b/quickstep/res/values-night/colors.xml index 7cb85bcc8e..293c00c877 100644 --- a/quickstep/res/values-night/colors.xml +++ b/quickstep/res/values-night/colors.xml @@ -16,7 +16,6 @@ #99000000 - #000000 #202124 diff --git a/quickstep/res/values/colors.xml b/quickstep/res/values/colors.xml index 70c38c7478..a1b64fc3a9 100644 --- a/quickstep/res/values/colors.xml +++ b/quickstep/res/values/colors.xml @@ -22,6 +22,7 @@ #61FFFFFF #3c000000 #3cffffff + #66404040 #E0E0E0 diff --git a/quickstep/res/values/styles.xml b/quickstep/res/values/styles.xml index 54babbc686..82d7ce76a9 100644 --- a/quickstep/res/values/styles.xml +++ b/quickstep/res/values/styles.xml @@ -379,4 +379,24 @@ 16sp 36dp + + + + diff --git a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java index d9808308e8..969e199522 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java +++ b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java @@ -53,7 +53,7 @@ public class DepthController extends BaseDepthController implements StateHandler private final Consumer mCrossWindowBlurListener = this::setCrossWindowBlursEnabled; - private final Runnable mOpaquenessListener = this::applyDepthAndBlur; + private final Runnable mOpaquenessListener = this::onBlurChange; // Workaround for animating the depth when multiwindow mode changes. private boolean mIgnoreStateChangesDuringMultiWindowAnimation = false; diff --git a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsSlideInView.java b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsSlideInView.java index 916b28ec0f..dabc7dafef 100644 --- a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsSlideInView.java +++ b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsSlideInView.java @@ -20,6 +20,7 @@ import static com.android.app.animation.Interpolators.EMPHASIZED; import static com.android.app.animation.Interpolators.LINEAR; import static com.android.launcher3.touch.AllAppsSwipeController.ALL_APPS_FADE_MANUAL; import static com.android.launcher3.touch.AllAppsSwipeController.SCRIM_FADE_MANUAL; +import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import android.animation.Animator; import android.content.Context; @@ -28,6 +29,7 @@ import android.graphics.Rect; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; +import android.view.CrossWindowBlurListeners; import android.view.MotionEvent; import android.view.View; import android.view.animation.Interpolator; @@ -47,11 +49,14 @@ import com.android.launcher3.taskbar.overlay.TaskbarOverlayContext; import com.android.launcher3.util.Themes; import com.android.launcher3.views.AbstractSlideInView; +import java.util.function.Consumer; + /** Wrapper for taskbar all apps with slide-in behavior. */ public class TaskbarAllAppsSlideInView extends AbstractSlideInView implements Insettable, DeviceProfile.OnDeviceProfileChangeListener { private final Handler mHandler; private final int mMaxBlurRadius; + private final Consumer mWindowBlurListener = blursEnabled -> invalidate(); private TaskbarAllAppsContainerView mAppsView; private float mShiftRange; @@ -214,6 +219,7 @@ public class TaskbarAllAppsSlideInView extends AbstractSlideInView - + \ No newline at end of file diff --git a/res/drawable/all_apps_tabs_background_unselected_focused.xml b/res/drawable/all_apps_tabs_background_unselected_focused.xml index 3564a0763e..83038926ba 100644 --- a/res/drawable/all_apps_tabs_background_unselected_focused.xml +++ b/res/drawable/all_apps_tabs_background_unselected_focused.xml @@ -28,7 +28,7 @@ android:top="@dimen/all_apps_tabs_focus_border"> - + diff --git a/res/drawable/bg_ps_header.xml b/res/drawable/bg_ps_header.xml deleted file mode 100644 index 87a21e485f..0000000000 --- a/res/drawable/bg_ps_header.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/bg_ps_mask_left_corner.xml b/res/drawable/bg_ps_mask_left_corner.xml index 43eeedb0b4..f87c497751 100644 --- a/res/drawable/bg_ps_mask_left_corner.xml +++ b/res/drawable/bg_ps_mask_left_corner.xml @@ -24,7 +24,7 @@ + android:fillColor="@android:color/white" /> \ No newline at end of file diff --git a/res/drawable/bg_ps_mask_right_corner.xml b/res/drawable/bg_ps_mask_right_corner.xml index d63b866f9c..7a4c0d80c6 100644 --- a/res/drawable/bg_ps_mask_right_corner.xml +++ b/res/drawable/bg_ps_mask_right_corner.xml @@ -24,7 +24,7 @@ + android:fillColor="@android:color/white" /> \ No newline at end of file diff --git a/res/drawable/inset_rounded_action_button.xml b/res/drawable/inset_rounded_action_button.xml index 8ae40c07bb..7b4c4d03c0 100644 --- a/res/drawable/inset_rounded_action_button.xml +++ b/res/drawable/inset_rounded_action_button.xml @@ -21,10 +21,10 @@ android:insetRight="@dimen/inset_rounded_action_button"> - + + android:color="?attr/allAppsSurfaceLow" /> diff --git a/res/drawable/ps_settings_background.xml b/res/drawable/ps_settings_background.xml index 7746012d40..7d568dc68e 100644 --- a/res/drawable/ps_settings_background.xml +++ b/res/drawable/ps_settings_background.xml @@ -18,6 +18,6 @@ android:inset="4dp"> - + \ No newline at end of file diff --git a/res/drawable/work_card.xml b/res/drawable/work_card.xml index 0e37d4f7b9..ff66971af0 100644 --- a/res/drawable/work_card.xml +++ b/res/drawable/work_card.xml @@ -17,7 +17,7 @@ - + diff --git a/res/layout/private_space_header.xml b/res/layout/private_space_header.xml index db11d7bff2..4efb6aca8c 100644 --- a/res/layout/private_space_header.xml +++ b/res/layout/private_space_header.xml @@ -16,18 +16,18 @@ --> + android:id="@+id/ps_header_layout" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="@dimen/ps_header_height" + android:background="@android:color/transparent" + android:clipToOutline="true" + android:gravity="center_vertical" + android:textDirection="locale" + android:orientation="horizontal" + android:contentDescription="@string/ps_container_lock_button_content_description" + android:importantForAccessibility="yes"> + android:background="@android:color/white"/> \ No newline at end of file diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 7d50d7dc02..581be98f9e 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -19,9 +19,13 @@ - + + + + + @@ -46,6 +50,10 @@ + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 88f542eb5c..dc4daebbe1 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -552,7 +552,6 @@ 300dp - 28dp 72dp 48dp 48dp diff --git a/res/values/styles.xml b/res/values/styles.xml index b7e19e5aa9..6ed5a77a92 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -39,10 +39,14 @@