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

Commit 390d55bc authored by James O'Leary's avatar James O'Leary
Browse files

Separate color into app color and dot color

Design intends for predicted app disc to use the app color, and the
dot to use tertiary T90/shade100. Both currently use `color`. Separating
into two separate colors lets use define the two separate colors
requested by design.

Bug: 213314628
Test: Manual inspection at runtime
Change-Id: I2e1656e9d806427a2fa8d4e79e414f99d9308086
parent 8a3cadab
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class DotRenderer {

        mCirclePaint.setColor(Color.BLACK);
        canvas.drawBitmap(mBackgroundWithShadow, mBitmapOffset, mBitmapOffset, mCirclePaint);
        mCirclePaint.setColor(params.color);
        mCirclePaint.setColor(params.dotColor);
        canvas.drawCircle(0, 0, mCircleRadius, mCirclePaint);
        canvas.restore();
    }
@@ -133,7 +133,10 @@ public class DotRenderer {
    public static class DrawParams {
        /** The color (possibly based on the icon) to use for the dot. */
        @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true)
        public int color;
        public int dotColor;
        /** The color (possibly based on the icon) to use for a predicted app. */
        @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true)
        public int appColor;
        /** The bounds of the icon that the dot is drawn on top of. */
        @ViewDebug.ExportedProperty(category = "notification dot")
        public Rect iconBounds = new Rect();