Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b68dba3 authored by Mady Mellor's avatar Mady Mellor
Browse files

Make bubble scrim be dark always

When the scrim is lighter & the pointer triangle is also
white, it's very hard to see and will not pass GAR.

Bug: 186441337
Test: atest ScrimControllerTest
Test: manual - expand bubble in dark & light theme on top of launcher
               and on top of some other app
             => notice scrim is always dark & pointer triangle is
                slightly more visible
Change-Id: I5e5c191bb813dc272284daf11e76c02ba17dc375
parent 681f269d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ public enum ScrimState {
        public void prepare(ScrimState previousState) {
            mFrontTint = Color.TRANSPARENT;
            mBehindTint = Color.TRANSPARENT;
            mBubbleTint = Color.TRANSPARENT;
            mBubbleTint = Color.BLACK;

            mFrontAlpha = 0f;
            mBehindAlpha = mDefaultScrimAlpha;
+1 −1
Original line number Diff line number Diff line
@@ -553,7 +553,7 @@ public class ScrimControllerTest extends SysuiTestCase {
        assertScrimTinted(Map.of(
                mScrimInFront, false,
                mScrimBehind, false,
                mScrimForBubble, false
                mScrimForBubble, true
        ));

        // Front scrim should be transparent