From 0e09140dacdc9b4cbe69740ec6448102ab1a2d97 Mon Sep 17 00:00:00 2001 From: Victor Truong Date: Tue, 29 Nov 2022 12:03:03 -0500 Subject: [PATCH] Change shadow of cast icon in Dream. The current shadow of the cast icon is darker because the two shadows were blending together to darken the shadow. The text's shadow is not blended. Bug: 257997891 Test: Manually tested Change-Id: Ia371bbeb9859a224da134770c7e99c4556960a6c --- .../android/systemui/shared/shadow/DoubleShadowIconDrawable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/DoubleShadowIconDrawable.kt b/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/DoubleShadowIconDrawable.kt index 3748eba47be5f..19d0a3d6bf32f 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/DoubleShadowIconDrawable.kt +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/DoubleShadowIconDrawable.kt @@ -71,7 +71,7 @@ class DoubleShadowIconDrawable( mKeyShadowInfo.offsetY, mKeyShadowInfo.alpha ) - val blend = RenderEffect.createBlendModeEffect(ambientShadow, keyShadow, BlendMode.DARKEN) + val blend = RenderEffect.createBlendModeEffect(ambientShadow, keyShadow, BlendMode.DST_ATOP) renderNode.setRenderEffect(blend) return renderNode }