diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml index dd3073fb5e65f..c5f4052b0e894 100644 --- a/packages/SystemUI/res/values-night/colors.xml +++ b/packages/SystemUI/res/values-night/colors.xml @@ -31,7 +31,10 @@ #212121 - #181818 + @color/GM2_grey_900 + + + @color/GM2_grey_500 #30ffffff diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index abf4fdf03b93a..e7a1a660abc27 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -74,7 +74,7 @@ #FF616161 - #ffeeeeee + @color/GM2_grey_200 #28000000 @@ -83,7 +83,7 @@ #30ffffff - #ff757575 + @color/GM2_grey_700 @*android:color/notification_primary_text_color_light diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index a517e760c8b4f..e6f47315bf4c0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -939,18 +939,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd return; } - float alpha = - BACKGROUND_ALPHA_DIMMED + (1 - BACKGROUND_ALPHA_DIMMED) * (1.0f - mDimAmount); - alpha *= 1f - mInterpolatedDarkAmount; - // We need to manually blend in the background color. - int scrimColor = mScrimController.getBackgroundColor(); - int awakeColor = ColorUtils.blendARGB(scrimColor, mBgColor, alpha); - // Interpolate between semi-transparent notification panel background color // and white AOD separator. float colorInterpolation = MathUtils.smoothStep(0.4f /* start */, 1f /* end */, mLinearDarkAmount); - int color = ColorUtils.blendARGB(awakeColor, Color.WHITE, colorInterpolation); + int color = ColorUtils.blendARGB(mBgColor, Color.WHITE, colorInterpolation); if (mCachedBackgroundColor != color) { mCachedBackgroundColor = color;