The reason:

The icon background color of the drop-down notification bar is set in qstileBaseView.java

        mColorActive = Utils.getColorAttrDefaultColor(context, android.R.attr.colorAccent);
Copy the code

The corresponding colorAccent is defined in colors_material. XML with a color value of #ff008577

<color name="accent_material_light">@color/material_deep_teal_500</color> <! -- High light colors in Light mode --> <! --<color name="material_deep_teal_500">#ff008577</color> --> <color name="material_deep_teal_500">#ff256FFF</color>Copy the code

Solution:

1. It is not recommended to directly modify the color value in colors_material. XML, because other places will also call this high-bright color, and this modification will lead to CTS failed.

2. Modify SystemUI where direct calls are made:

+ //mColorActive = Utils.getColorAttrDefaultColor(context, android.R.attr.colorAccent); + mColorActive = context.getResources().getColor(R.color.colorAccent);Copy the code

Then define the required background color value for this colorAccent in SystemUI color.xml:

+        <color name="colorAccent">#FF1A73E8</color>
Copy the code