| Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
|
| index 28a392fcea1f3a3d126060cbd71f79610a45c6e9..f92c85592e8406a730570d25bb9158be1b974a2f 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
|
| @@ -95,7 +95,7 @@ public class BottomToolbarPhone extends ToolbarPhone {
|
| super(context, attrs);
|
|
|
| int defaultHandleColor =
|
| - ApiCompatibilityUtils.getColor(getResources(), R.color.google_grey_500);
|
| + ApiCompatibilityUtils.getColor(getResources(), R.color.semi_opaque_black);
|
| mHandleDark = generateHandleBitmap(defaultHandleColor);
|
|
|
| int lightHandleColor =
|
| @@ -201,10 +201,11 @@ public class BottomToolbarPhone extends ToolbarPhone {
|
| protected void updateVisualsForToolbarState() {
|
| super.updateVisualsForToolbarState();
|
|
|
| - // The handle should not show in tab switcher mode.
|
| - mToolbarHandleView.setVisibility(
|
| - mTabSwitcherState != ToolbarPhone.STATIC_TAB ? View.INVISIBLE : View.VISIBLE);
|
| - mToolbarHandleView.setImageBitmap(mUseLightToolbarDrawables ? mHandleLight : mHandleDark);
|
| + // The tab switcher's background color should not affect the toolbar handle; it should only
|
| + // switch color based on the static tab's theme color. This is done so fade in/out looks
|
| + // correct.
|
| + boolean isLight = ColorUtils.shouldUseLightForegroundOnBackground(getTabThemeColor());
|
| + mToolbarHandleView.setImageBitmap(isLight ? mHandleLight : mHandleDark);
|
| }
|
|
|
| @Override
|
| @@ -252,6 +253,7 @@ public class BottomToolbarPhone extends ToolbarPhone {
|
| mNewTabButton.setAlpha(progress);
|
|
|
| mLocationBar.setAlpha(1f - progress);
|
| + mToolbarHandleView.setAlpha(1f - progress);
|
|
|
| int tabSwitcherThemeColor = getToolbarColorForVisualState(VisualState.TAB_SWITCHER_NORMAL);
|
|
|
|
|