Index: mobile/android/base/tabs/TabsPanel.java |
=================================================================== |
--- a/mobile/android/base/tabs/TabsPanel.java |
+++ b/mobile/android/base/tabs/TabsPanel.java |
@@ -258,28 +258,30 @@ public class TabsPanel extends LinearLay |
public void onDetachedFromWindow() { |
super.onDetachedFromWindow(); |
mTheme.removeListener(this); |
} |
@Override |
@SuppressWarnings("deprecation") // setBackgroundDrawable deprecated by API level 16 |
public void onLightweightThemeChanged() { |
- final int background = ColorUtils.getColor(getContext(), R.color.text_and_tabs_tray_grey); |
+ // Using ABB color palette. See https://issues.adblockplus.org/ticket/3769 |
+ final int background = ColorUtils.getColor(getContext(), R.color.abb_background_light_grey); |
final LightweightThemeDrawable drawable = mTheme.getColorDrawable(this, background, true); |
if (drawable == null) |
return; |
drawable.setAlpha(34, 0); |
setBackgroundDrawable(drawable); |
} |
@Override |
public void onLightweightThemeReset() { |
- setBackgroundColor(ColorUtils.getColor(getContext(), R.color.text_and_tabs_tray_grey)); |
+ // Using ABB color palette. See https://issues.adblockplus.org/ticket/3769 |
+ setBackgroundColor(ColorUtils.getColor(getContext(), R.color.abb_background_light_grey)); |
} |
@Override |
protected void onLayout(boolean changed, int left, int top, int right, int bottom) { |
super.onLayout(changed, left, top, right, bottom); |
onLightweightThemeChanged(); |
} |
@@ -303,28 +305,30 @@ public class TabsPanel extends LinearLay |
public void onDetachedFromWindow() { |
super.onDetachedFromWindow(); |
mTheme.removeListener(this); |
} |
@Override |
@SuppressWarnings("deprecation") // setBackgroundDrawable deprecated by API level 16 |
public void onLightweightThemeChanged() { |
- final int background = ColorUtils.getColor(getContext(), R.color.text_and_tabs_tray_grey); |
+ // Using ABB color palette. See https://issues.adblockplus.org/ticket/3769 |
+ final int background = ColorUtils.getColor(getContext(), R.color.abb_background_light_grey); |
final LightweightThemeDrawable drawable = mTheme.getColorDrawable(this, background); |
if (drawable == null) |
return; |
drawable.setAlpha(34, 34); |
setBackgroundDrawable(drawable); |
} |
@Override |
public void onLightweightThemeReset() { |
- setBackgroundColor(ColorUtils.getColor(getContext(), R.color.text_and_tabs_tray_grey)); |
+ // Using ABB color palette. See https://issues.adblockplus.org/ticket/3769 |
+ setBackgroundColor(ColorUtils.getColor(getContext(), R.color.abb_background_light_grey)); |
} |
@Override |
protected void onLayout(boolean changed, int left, int top, int right, int bottom) { |
super.onLayout(changed, left, top, right, bottom); |
onLightweightThemeChanged(); |
} |
} |