Commit 2d0ff6c9 authored by Grigory Fedorov's avatar Grigory Fedorov

Contact list contacts and active chats background colors moved to colors.xml.

parent bc906738
...@@ -95,7 +95,7 @@ public class ContactItemInflater { ...@@ -95,7 +95,7 @@ public class ContactItemInflater {
viewHolder.outgoingMessageIndicator.setTextColor(accountMainColors[colorLevel]); viewHolder.outgoingMessageIndicator.setTextColor(accountMainColors[colorLevel]);
} }
view.setBackgroundColor(context.getResources().getColor(R.color.grey_50)); view.setBackgroundColor(context.getResources().getColor(R.color.contact_list_active_chat_background));
viewHolder.smallRightIcon.setImageResource(R.drawable.ic_client_small); viewHolder.smallRightIcon.setImageResource(R.drawable.ic_client_small);
viewHolder.smallRightIcon.setVisibility(View.VISIBLE); viewHolder.smallRightIcon.setVisibility(View.VISIBLE);
viewHolder.smallRightIcon.setImageLevel(clientSoftware.ordinal()); viewHolder.smallRightIcon.setImageLevel(clientSoftware.ordinal());
...@@ -103,7 +103,7 @@ public class ContactItemInflater { ...@@ -103,7 +103,7 @@ public class ContactItemInflater {
} else { } else {
statusText = contact.getStatusText().trim(); statusText = contact.getStatusText().trim();
viewHolder.smallRightText.setVisibility(View.GONE); viewHolder.smallRightText.setVisibility(View.GONE);
view.setBackgroundColor(context.getResources().getColor(R.color.grey_300)); view.setBackgroundColor(context.getResources().getColor(R.color.contact_list_contact_background));
viewHolder.smallRightIcon.setVisibility(View.GONE); viewHolder.smallRightIcon.setVisibility(View.GONE);
viewHolder.largeClientIcon.setVisibility(View.VISIBLE); viewHolder.largeClientIcon.setVisibility(View.VISIBLE);
viewHolder.largeClientIcon.setImageLevel(clientSoftware.ordinal()); viewHolder.largeClientIcon.setImageLevel(clientSoftware.ordinal());
......
...@@ -108,7 +108,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat ...@@ -108,7 +108,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
accountGroupColors = resources.getIntArray(R.array.account_200); accountGroupColors = resources.getIntArray(R.array.account_200);
accountSubgroupColors = resources.getIntArray(R.array.account_50); accountSubgroupColors = resources.getIntArray(R.array.account_50);
activeChatsColor = resources.getColor(R.color.color_primary_light); activeChatsColor = resources.getColor(R.color.contact_list_active_chats_group_background);
contactItemInflater = new ContactItemInflater(activity); contactItemInflater = new ContactItemInflater(activity);
......
...@@ -85,5 +85,9 @@ ...@@ -85,5 +85,9 @@
<color name="account_disabled">@color/black_dividers</color> <color name="account_disabled">@color/black_dividers</color>
<color name="contact_list_background">@color/grey_400</color> <color name="contact_list_background">@color/grey_400</color>
<color name="contact_list_active_chats_group_background">@color/grey_200</color>
<color name="contact_list_active_chat_background">@color/grey_50</color>
<color name="contact_list_contact_background">@color/grey_300</color>
<color name="recent_chats_background">@color/grey_300</color> <color name="recent_chats_background">@color/grey_300</color>
</resources> </resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment