From 6ebcc3651451627c72ce5308eec9c7734d1e802e Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Wed, 18 Jun 2014 12:49:35 -0700 Subject: [PATCH] Update more colors in Data Usage Summary - use colors from the Settings Theme - code cleaning for use the Theme accent color constant instead of raw color value Change-Id: I04ec913f0b8048b6e50069213e9d92992168fe18 --- res/layout/data_usage_chart.xml | 2 +- res/layout/data_usage_detail.xml | 4 ++-- res/values/colors.xml | 2 +- res/values/styles.xml | 2 +- src/com/android/settings/DataUsageSummary.java | 7 +++++-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/res/layout/data_usage_chart.xml b/res/layout/data_usage_chart.xml index cec2af2f84a..76cfc6d5261 100644 --- a/res/layout/data_usage_chart.xml +++ b/res/layout/data_usage_chart.xml @@ -54,7 +54,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start|bottom" - settings:strokeColor="#d88d3a" + settings:strokeColor="@color/theme_accent" settings:fillColor="#c0ba7f3e" settings:fillColorSecondary="#60ba7f3e" /> diff --git a/res/layout/data_usage_detail.xml b/res/layout/data_usage_detail.xml index 68267645282..3bca030e1cb 100644 --- a/res/layout/data_usage_detail.xml +++ b/res/layout/data_usage_detail.xml @@ -55,7 +55,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dip" - android:textColor="#d88d3a" + android:textColor="@color/theme_accent" android:text="@string/data_usage_label_foreground" android:textAlignment="viewStart" /> @@ -63,7 +63,7 @@ android:id="@+id/app_foreground" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textColor="#d88d3a" + android:textColor="@color/theme_accent" android:textAlignment="viewStart" /> #00000000 #ff37474f - #ff009688 + @color/theme_accent #fff4511e diff --git a/res/values/styles.xml b/res/values/styles.xml index 26b0ef39a87..f143ebc866c 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -265,7 +265,7 @@