From 1fcf632550d20f5740bc0aa70ce945afe517ea26 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Tue, 2 Sep 2014 16:07:44 +0100 Subject: [PATCH] Bug 1055536 - Consolidate divider colors (r=margaret) --- .../android/base/resources/drawable/divider_horizontal.xml | 2 +- .../android/base/resources/drawable/divider_vertical.xml | 2 +- .../resources/drawable/home_panel_title_background.xml | 2 +- mobile/android/base/resources/values-v11/styles.xml | 2 +- mobile/android/base/resources/values/colors.xml | 7 ++++--- mobile/android/base/resources/values/styles.xml | 4 ++-- mobile/android/base/widget/DoorHanger.java | 4 ++-- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/mobile/android/base/resources/drawable/divider_horizontal.xml b/mobile/android/base/resources/drawable/divider_horizontal.xml index 4326c2c4fa3..31e4a9dd81b 100644 --- a/mobile/android/base/resources/drawable/divider_horizontal.xml +++ b/mobile/android/base/resources/drawable/divider_horizontal.xml @@ -6,7 +6,7 @@ - + diff --git a/mobile/android/base/resources/drawable/divider_vertical.xml b/mobile/android/base/resources/drawable/divider_vertical.xml index 1810d6dce1c..8f289b050ad 100644 --- a/mobile/android/base/resources/drawable/divider_vertical.xml +++ b/mobile/android/base/resources/drawable/divider_vertical.xml @@ -6,7 +6,7 @@ - + diff --git a/mobile/android/base/resources/drawable/home_panel_title_background.xml b/mobile/android/base/resources/drawable/home_panel_title_background.xml index 195826ca318..4f5cc8d1d2f 100644 --- a/mobile/android/base/resources/drawable/home_panel_title_background.xml +++ b/mobile/android/base/resources/drawable/home_panel_title_background.xml @@ -6,7 +6,7 @@ + android:color="@color/divider_light" /> diff --git a/mobile/android/base/resources/values-v11/styles.xml b/mobile/android/base/resources/values-v11/styles.xml index 3956ba8683d..a15b1e03e38 100644 --- a/mobile/android/base/resources/values-v11/styles.xml +++ b/mobile/android/base/resources/values-v11/styles.xml @@ -59,7 +59,7 @@ diff --git a/mobile/android/base/resources/values/colors.xml b/mobile/android/base/resources/values/colors.xml index ea62a73be2b..b42dc6ad7ee 100644 --- a/mobile/android/base/resources/values/colors.xml +++ b/mobile/android/base/resources/values/colors.xml @@ -69,6 +69,10 @@ #22629E + + #FFD7D9DB + #FFB3C2CE + #000000 #ffffff #000000 @@ -76,8 +80,6 @@ #FF222222 #FF2AA1FE - #FFD7D9DB - #FFB3C2CE #FFDDE4EA #ffffff @@ -120,6 +122,5 @@ #DD363B40 #00000000 #DD2C3136 - #FFD7D9DB #FFFFFFFF diff --git a/mobile/android/base/resources/values/styles.xml b/mobile/android/base/resources/values/styles.xml index e4bd9782d5d..1b13a198e8d 100644 --- a/mobile/android/base/resources/values/styles.xml +++ b/mobile/android/base/resources/values/styles.xml @@ -45,7 +45,7 @@ diff --git a/mobile/android/base/widget/DoorHanger.java b/mobile/android/base/widget/DoorHanger.java index 627ed5a9dcf..044d969ffc4 100644 --- a/mobile/android/base/widget/DoorHanger.java +++ b/mobile/android/base/widget/DoorHanger.java @@ -121,10 +121,10 @@ public class DoorHanger extends LinearLayout { if (theme == Theme.LIGHT) { // The default styles declared in doorhanger.xml are light-themed, so we just // need to set the divider color that we'll use in addButton. - mDividerColor = mResources.getColor(R.color.doorhanger_divider_light); + mDividerColor = mResources.getColor(R.color.divider_light); } else if (theme == Theme.DARK) { - mDividerColor = mResources.getColor(R.color.doorhanger_divider_dark); + mDividerColor = mResources.getColor(R.color.divider_dark); // Set a dark background, and use a smaller text size for dark-themed DoorHangers. setBackgroundColor(mResources.getColor(R.color.doorhanger_background_dark));