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

Commit 182a8ff4 authored by Prince's avatar Prince
Browse files

Increase status bar icon shadow alpha values for better contrast

Fixes accessibility issue by increasing shadow alpha values to meet
the 3:1 minimum contrast ratio requirement. Key shadow alpha increased
from 0.35 to 0.8 and ambient shadow alpha from 0.4 to 0.6 for icons
in dream/screensaver mode.

Fixes: 380229099
Test: Device tested
Flag: NONE accessibility fix
Change-Id: If6a720b998d63e221bbf3f4f30380eb958ade6bc
parent dc082200
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,8 +75,8 @@ public class AmbientStatusBarView extends ConstraintLayout {
    private ShadowInfo mAmbientShadowInfo;
    private int mDrawableSize;
    private int mDrawableInsetSize;
    private static final float KEY_SHADOW_ALPHA = 0.35f;
    private static final float AMBIENT_SHADOW_ALPHA = 0.4f;
    private static final float KEY_SHADOW_ALPHA = 0.8f;
    private static final float AMBIENT_SHADOW_ALPHA = 0.6f;

    public AmbientStatusBarView(Context context) {
        this(context, null);