Loading java/com/android/dialer/app/res/values-night/colors.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <!-- ~ 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> java/com/android/dialer/app/res/values/colors.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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> java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
java/com/android/dialer/app/res/values-night/colors.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <!-- ~ 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>
java/com/android/dialer/app/res/values/colors.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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>
java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading