Update color of FAB
I copied Dialers fab into Contacts instead of ContactsCommon.
Since this is a visual element, there is little chance of it
diverging from Dialer in an undetected way.
I was previously overzelously trying to unify colors/icons between
dialer and contacts. This is not a good policy when others are less
zeoulos.
Bug: 16847357
Change-Id: I6e3587d5871a485963f8677e9697ee777d6f1caf
diff --git a/res/drawable-hdpi/fab_blue.png b/res/drawable-hdpi/fab_blue.png
new file mode 100644
index 0000000..8ff3d29
--- /dev/null
+++ b/res/drawable-hdpi/fab_blue.png
Binary files differ
diff --git a/res/drawable-hdpi/profile_ic_fab_yellow.png b/res/drawable-hdpi/profile_ic_fab_yellow.png
deleted file mode 100644
index 9287aa5..0000000
--- a/res/drawable-hdpi/profile_ic_fab_yellow.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/fab_blue.png b/res/drawable-mdpi/fab_blue.png
new file mode 100644
index 0000000..2ca6b4b
--- /dev/null
+++ b/res/drawable-mdpi/fab_blue.png
Binary files differ
diff --git a/res/drawable-mdpi/profile_ic_fab_yellow.png b/res/drawable-mdpi/profile_ic_fab_yellow.png
deleted file mode 100644
index 257be13..0000000
--- a/res/drawable-mdpi/profile_ic_fab_yellow.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/fab_blue.png b/res/drawable-xhdpi/fab_blue.png
new file mode 100644
index 0000000..300b07e
--- /dev/null
+++ b/res/drawable-xhdpi/fab_blue.png
Binary files differ
diff --git a/res/drawable-xhdpi/profile_ic_fab_yellow.png b/res/drawable-xhdpi/profile_ic_fab_yellow.png
deleted file mode 100644
index a6e183b..0000000
--- a/res/drawable-xhdpi/profile_ic_fab_yellow.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/fab_blue.png b/res/drawable-xxhdpi/fab_blue.png
new file mode 100644
index 0000000..76d68ac
--- /dev/null
+++ b/res/drawable-xxhdpi/fab_blue.png
Binary files differ
diff --git a/res/drawable-xxhdpi/profile_ic_fab_yellow.png b/res/drawable-xxhdpi/profile_ic_fab_yellow.png
deleted file mode 100644
index 3e4b898..0000000
--- a/res/drawable-xxhdpi/profile_ic_fab_yellow.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable/floating_action_button.xml b/res/drawable/floating_action_button.xml
index f3c2b90..34612d5 100644
--- a/res/drawable/floating_action_button.xml
+++ b/res/drawable/floating_action_button.xml
@@ -17,5 +17,5 @@
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/contacts_accent_color">
- <item android:drawable="@drawable/profile_ic_fab_yellow" />
+ <item android:drawable="@drawable/fab_blue" />
</ripple>
diff --git a/res/layout/floating_action_button.xml b/res/layout/floating_action_button.xml
index dd41dbe..1541d42 100644
--- a/res/layout/floating_action_button.xml
+++ b/res/layout/floating_action_button.xml
@@ -30,6 +30,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/floating_action_button"
+ android:tint="@color/floating_action_button_icon_color"
android:contentDescription="@string/action_menu_add_new_contact_button"
android:src="@drawable/ic_person_add_24dp"/>
</FrameLayout>
\ No newline at end of file
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 84ecea0..2a53896 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -35,8 +35,10 @@
<color name="primary_color_dark">#0277bd</color>
<color name="primary_color">#0288d1</color>
- <!-- Color of the selected tab underline (overriding value in ContactsCommon) -->
- <color name="contacts_accent_color">#00acc1</color>
+ <!-- Color of the selected tab underline -->
+ <color name="contacts_accent_color">#FFFFFF</color>
+
+ <color name="floating_action_button_icon_color">@color/contacts_accent_color</color>
<!-- Color of the separator between entries in an ExpandingEntryCardView -->
<color name="expanding_entry_card_item_separator_color">#e4e4e4</color>