summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Kover <dkover@cyngn.com>2015-04-17 10:23:29 -0700
committerDave Kover <dkover@cyngn.com>2015-04-17 10:29:36 -0700
commit176b6ab6916403cec7c549a7fada89db96b72582 (patch)
tree57488db95a32692e69fe6bdd766b23a1902f9704
parent43c53f7867bcee839b32db14fe6c42719b58aee2 (diff)
downloadandroid_packages_apps_Dialer-176b6ab6916403cec7c549a7fada89db96b72582.tar.gz
android_packages_apps_Dialer-176b6ab6916403cec7c549a7fada89db96b72582.tar.bz2
android_packages_apps_Dialer-176b6ab6916403cec7c549a7fada89db96b72582.zip
Split out textColor to its own separate value.
If a theme modifies the dialer text to white and still leaves the call log white, the text would be white-on-white. This change allows the call_log_list_item_extra text to be changed separately. Change-Id: I18f10494dd6987e6dee5655b5662b94622ca874f
-rw-r--r--res/layout/call_log_list_item_extra.xml2
-rw-r--r--res/values/cm_colors.xml22
2 files changed, 23 insertions, 1 deletions
diff --git a/res/layout/call_log_list_item_extra.xml b/res/layout/call_log_list_item_extra.xml
index fbf71f64d..ef8f5e11a 100644
--- a/res/layout/call_log_list_item_extra.xml
+++ b/res/layout/call_log_list_item_extra.xml
@@ -44,7 +44,7 @@
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/badge_text"
- android:textColor="@color/dialpad_primary_text_color"
+ android:textColor="@color/call_log_extra_text_color"
android:layout_gravity="center_vertical"
android:layout_weight="1"/>
<ImageView android:id="@+id/dismiss_button"
diff --git a/res/values/cm_colors.xml b/res/values/cm_colors.xml
new file mode 100644
index 000000000..f766f188f
--- /dev/null
+++ b/res/values/cm_colors.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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>
+
+ <!-- Call Log List Item Extra Text Color -->
+ <color name="call_log_extra_text_color">@color/dialpad_primary_text_color</color>
+
+</resources>