From 1854a4fcb5189545043f32e0fbe77b3b37f644aa Mon Sep 17 00:00:00 2001 From: Timi Date: Mon, 10 May 2021 16:41:09 +0200 Subject: Dialer: use black/white navigation colors Change-Id: I9d2ee0bbc7d765e605d6f60c7866565c83dff295 --- .../android/dialer/app/res/values-night/colors.xml | 20 ++++++++++++++++++++ java/com/android/dialer/app/res/values/colors.xml | 3 +++ .../dialer/main/impl/bottomnav/BottomNavItem.java | 4 ++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 java/com/android/dialer/app/res/values-night/colors.xml (limited to 'java') diff --git a/java/com/android/dialer/app/res/values-night/colors.xml b/java/com/android/dialer/app/res/values-night/colors.xml new file mode 100644 index 000000000..1d165af81 --- /dev/null +++ b/java/com/android/dialer/app/res/values-night/colors.xml @@ -0,0 +1,20 @@ + + + + #80FFFFFF + #FFFFFF + diff --git a/java/com/android/dialer/app/res/values/colors.xml b/java/com/android/dialer/app/res/values/colors.xml index 16fb2d098..f59f4f14a 100644 --- a/java/com/android/dialer/app/res/values/colors.xml +++ b/java/com/android/dialer/app/res/values/colors.xml @@ -25,4 +25,7 @@ #F44336 + + #80666666 + #666666 diff --git a/java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java b/java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java index 4794b8823..4cba2a470 100644 --- a/java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java +++ b/java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java @@ -56,8 +56,8 @@ final class BottomNavItem extends LinearLayout { super.setSelected(selected); int colorId = selected - ? ThemeComponent.get(getContext()).theme().getColorPrimary() - : ThemeComponent.get(getContext()).theme().getTextColorSecondary(); + ? getContext().getResources().getColor(R.color.nav_item_selected) + : getContext().getResources().getColor(R.color.nav_item); image.setImageTintList(ColorStateList.valueOf(colorId)); text.setTextColor(colorId); } -- cgit v1.2.3