Replaced the algorithm for determining whether two colors are distinguishable. Merged some duplicated code into its own methods.

This commit is contained in:
Karim Abou Zeid 2015-09-23 16:39:27 +02:00
commit 601c1d9489
4 changed files with 109 additions and 29 deletions

View file

@ -4,7 +4,7 @@
<color name="pink_A200">#ff4081</color>
<color name="indigo_500">#3f51b5</color>
<color name="grey_800">#424242</color>
<color name="grey_700">#616161</color>
<color name="grey_900">#212121</color>
</resources>

View file

@ -43,7 +43,7 @@
<item name="cardBackgroundColor">@color/cardview_light_background</item>
<item name="default_bar_color">@color/grey_800</item>
<item name="default_bar_color">@color/grey_700</item>
<item name="divider_color">@color/md_divider_black</item>
<item name="icon_color">@color/secondary_text_default_material_light</item>