dgzz
dgzz

Reputation: 3009

Material Design's 500 colors not enough contrast with white

I tried Android Studio's Theme Editor today and got some warnings from it.

material color not enough contrast

According to the material design guidelines, I should use 500 as the primary colors but why is that the Theme Editor says that my primary color (Material Light Blue 500) doesn't have enough contrast with my textColorPrimary(#ffffff)? I also think that by not having the correct colors, my app title gets a black color on the recent apps screen which should be white.

enter image description here

Upvotes: 0

Views: 1122

Answers (1)

Eugen Pechanec
Eugen Pechanec

Reputation: 38243

The text color in Recent apps gets computed automatically from background. The same algorithm is used to generate the warning in theme editor. When you look at the Light Blue 500 color you see Google suggests using black text over it.

You're free to use white text color in your app despite the warning but you can't change the Recent apps screen behavior.

Upvotes: 0

Related Questions