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

Commit e55e1a78 authored by Romain Guy's avatar Romain Guy
Browse files

Change fade to use a gradient from opaque color to transparent color.

Previously the fade was using a gradient from opaque color to transparent black.
parent 42b16482
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8742,7 +8742,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
                mLastColor = color;
                color |= 0xFF000000;

                shader = new LinearGradient(0, 0, 0, 1, color, 0, Shader.TileMode.CLAMP);
                shader = new LinearGradient(0, 0, 0, 1, color | 0xFF000000,
                        color & 0x00FFFFFF, Shader.TileMode.CLAMP);

                paint.setShader(shader);
                // Restore the default transfer mode (src_over)