diff options
author | chengzhi.hou <chengzhi.hou@ck-telecom.com> | 2015-09-02 12:59:59 +0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-29 14:44:21 -0700 |
commit | d2fba8a95cf234c21b7200b5eafe05e24e6adbbe (patch) | |
tree | 2f570afdcf7c34a7d5301422a113e4d77be52676 | |
parent | 0a93dc3b564a7a020d7dff6a4b08ad43457e196a (diff) | |
download | android_packages_apps_Dialer-d2fba8a95cf234c21b7200b5eafe05e24e6adbbe.tar.gz android_packages_apps_Dialer-d2fba8a95cf234c21b7200b5eafe05e24e6adbbe.tar.bz2 android_packages_apps_Dialer-d2fba8a95cf234c21b7200b5eafe05e24e6adbbe.zip |
Specify different colors for answered incoming call and outgoing call icons.
Change-Id: I8776ef3e2e20e66ec9524bf5cee76af5e2d4c2e4
-rw-r--r-- | res/values/colors.xml | 8 | ||||
-rwxr-xr-x | src/com/android/dialer/calllog/CallTypeIconsView.java | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml index d10ec2629..d2614e9ff 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -21,6 +21,7 @@ <color name="dialtacts_secondary_text_color">#737373</color> <color name="dialer_red_highlight_color">#ff1744</color> <color name="dialer_green_highlight_color">#00c853</color> + <color name="dialer_blue_highlight_color">#00a8ff</color> <color name="setting_background_color">#ffffff</color> <color name="setting_button_color">#eee</color> @@ -91,8 +92,11 @@ <!-- Color for blacklist call icons. --> <color name="blacklisted_call">#ff000000</color> - <!-- Color for answered or outgoing call icons. --> - <color name="answered_call">@color/dialer_green_highlight_color</color> + <!-- Color for answered call icons. --> + <color name="answered_incoming_call">@color/dialer_blue_highlight_color</color> + + <!-- Color for outgoing call icons. --> + <color name="answered_outgoing_call">@color/dialer_green_highlight_color</color> <!-- Color for icons in the actionbar --> <color name="actionbar_icon_color">#ffffff</color> diff --git a/src/com/android/dialer/calllog/CallTypeIconsView.java b/src/com/android/dialer/calllog/CallTypeIconsView.java index eb7247416..e4713ff80 100755 --- a/src/com/android/dialer/calllog/CallTypeIconsView.java +++ b/src/com/android/dialer/calllog/CallTypeIconsView.java @@ -200,11 +200,11 @@ public class CallTypeIconsView extends View { final android.content.res.Resources r = context.getResources(); incoming = r.getDrawable(R.drawable.ic_call_arrow); - incoming.setColorFilter(r.getColor(R.color.answered_call), PorterDuff.Mode.MULTIPLY); + incoming.setColorFilter(r.getColor(R.color.answered_incoming_call), PorterDuff.Mode.MULTIPLY); // Create a rotated instance of the call arrow for outgoing calls. outgoing = BitmapUtil.getRotatedDrawable(r, R.drawable.ic_call_arrow, 180f); - outgoing.setColorFilter(r.getColor(R.color.answered_call), PorterDuff.Mode.MULTIPLY); + outgoing.setColorFilter(r.getColor(R.color.answered_outgoing_call), PorterDuff.Mode.MULTIPLY); // Need to make a copy of the arrow drawable, otherwise the same instance colored // above will be recolored here. |