From 86f638060e4fe433d351413f244f1a74a5154be9 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Thu, 18 Jun 2020 21:40:46 -0700 Subject: [PATCH] Lighten bubble scrim Alpha: 0.85 => 0.6 Bug: 158482996 Test: dark mode pointer easier to see with lighter scrim Change-Id: I9bc73591bed42b21c87e098d9ac0bb35e6804343 --- .../android/systemui/statusbar/phone/ScrimController.java | 6 ++++++ .../com/android/systemui/statusbar/phone/ScrimState.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index 00eab952c5044..60fc17d9474ab 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -113,6 +113,12 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo * Scrim opacity when the phone is about to wake-up. */ public static final float WAKE_SENSOR_SCRIM_ALPHA = 0.6f; + + /** + * Scrim opacity when bubbles are expanded. + */ + public static final float BUBBLE_SCRIM_ALPHA = 0.6f; + /** * The default scrim under the shade and dialogs. * This should not be lower than 0.54, otherwise we won't pass GAR. diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java index ade642c5ea9aa..2db36f4a62f83 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java @@ -235,7 +235,7 @@ public enum ScrimState { mFrontAlpha = 0f; mBehindAlpha = mDefaultScrimAlpha; - mBubbleAlpha = mDefaultScrimAlpha; + mBubbleAlpha = ScrimController.BUBBLE_SCRIM_ALPHA; mAnimationDuration = ScrimController.ANIMATION_DURATION; mBlankScreen = false;