summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/dialer/app/res/values-night/colors.xml20
-rw-r--r--java/com/android/dialer/app/res/values/colors.xml3
-rw-r--r--java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java4
3 files changed, 25 insertions, 2 deletions
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 @@
+<!--
+ ~ Copyright (C) 2012 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+-->
+
+<resources>
+ <color name="nav_item">#80FFFFFF</color>
+ <color name="nav_item_selected">#FFFFFF</color>
+</resources>
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 @@
<!-- Colors for blocked numbers list -->
<color name="blocked_number_block_color">#F44336</color>
+
+ <color name="nav_item">#80666666</color>
+ <color name="nav_item_selected">#666666</color>
</resources>
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);
}