Default colored notifications use accent color for icon;
System notifications use default color. Bug: 181048615 Test: visual inspection Change-Id: I98697dbcefb50256b0ac5e7a0a9a64a76681d3ec
This commit is contained in:
@@ -6270,6 +6270,9 @@ public class Notification implements Parcelable
|
||||
if (rawColor == COLOR_DEFAULT) {
|
||||
ensureColors(p);
|
||||
color = ContrastColorUtil.resolveDefaultColor(mContext, background, mInNightMode);
|
||||
if (mTintWithThemeAccent) {
|
||||
color = obtainThemeColor(R.attr.colorAccent, color);
|
||||
}
|
||||
} else {
|
||||
color = ContrastColorUtil.resolveContrastColor(mContext, rawColor,
|
||||
background, mInNightMode);
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<color name="accessibility_focus_highlight_color">#bf39b500</color>
|
||||
<color name="autofilled_highlight">#4dffeb3b</color>
|
||||
|
||||
<color name="system_notification_accent_color">#ff607D8B</color>
|
||||
<color name="system_notification_accent_color">#00000000</color>
|
||||
|
||||
<!-- Default user icon colors -->
|
||||
<color name="user_icon_1">#ff00bcd4</color><!-- cyan 500 -->
|
||||
|
||||
Reference in New Issue
Block a user