Fix accent as notification color
This commit is contained in:
parent
5c610deb1b
commit
2916b510c2
@ -4610,6 +4610,10 @@ public class NotificationsController extends BaseController {
|
||||
if (color == 0) {
|
||||
color = Theme.getColor(Theme.key_actionBarDefault) | 0xff000000;
|
||||
}
|
||||
// too bright
|
||||
if (AndroidUtilities.computePerceivedBrightness(color) >= 0.721f) {
|
||||
color = Theme.getColor(Theme.key_windowBackgroundWhiteBlueHeader) | 0xff000000;
|
||||
}
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user