Bug 1021123 - Improve colors in remote tabs pull-to-refresh. r=mcomella a=sledru FIREFOX_AURORA_31_END FIREFOX_BETA_31_BASE
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Fri, 06 Jun 2014 11:25:08 -0700
changeset 219535 f11b164d75442617c4f046177d2ab913ed03a318
parent 219534 7ee937b0d2e1f23a90cffe5a1f82f985afe7834e
child 219536 74413aa5465b2571eebc4a564b7b6e6fa87791a4
child 219802 fb623ee7a8531df55386e86b447e83be67759767
push id3
push usergszorc@mozilla.com
push dateWed, 29 Oct 2014 02:45:36 +0000
reviewersmcomella, sledru
bugs1021123
milestone31.0a2
Bug 1021123 - Improve colors in remote tabs pull-to-refresh. r=mcomella a=sledru
mobile/android/base/RemoteTabsContainer.java
mobile/android/base/resources/values/colors.xml
--- a/mobile/android/base/RemoteTabsContainer.java
+++ b/mobile/android/base/RemoteTabsContainer.java
@@ -37,18 +37,18 @@ public class RemoteTabsContainer extends
 
     @Override
     public void addView(View child, int index, ViewGroup.LayoutParams params) {
         super.addView(child, index, params);
 
         list = (RemoteTabsList) child;
 
         // Must be called after the child view has been added.
-        setColorScheme(R.color.swipe_refresh_orange_dark, R.color.background_tabs,
-                       R.color.swipe_refresh_orange_dark, R.color.background_tabs);
+        setColorScheme(R.color.swipe_refresh_orange1, R.color.swipe_refresh_orange2,
+                       R.color.swipe_refresh_orange3, R.color.swipe_refresh_orange4);
     }
 
 
     @Override
     public boolean canChildScrollUp() {
         // We are not supporting swipe-to-refresh for old sync. This disables the swipe gesture if
         // no FxA are detected.
         if (FirefoxAccounts.firefoxAccountsExist(getContext())) {
--- a/mobile/android/base/resources/values/colors.xml
+++ b/mobile/android/base/resources/values/colors.xml
@@ -90,10 +90,15 @@
 
   <color name="home_last_tab_bar_bg">#FFF5F7F9</color>
 
   <color name="panel_image_item_background">#D1D9E1</color>
 
   <!-- Swipe to refresh colors -->
   <color name="swipe_refresh_orange">#FFFFC26C</color>
   <color name="swipe_refresh_white">#FFFFFFFF</color>
-  <color name="swipe_refresh_orange_dark">#FF9500</color>
+
+  <!-- Swipe to refresh colors for remote tabs -->
+  <color name="swipe_refresh_orange1">#EE6700</color>
+  <color name="swipe_refresh_orange2">#FF9400</color>
+  <color name="swipe_refresh_orange3">#F57900</color>
+  <color name="swipe_refresh_orange4">#FFB44C</color>
 </resources>