Commit ddfb2b7e authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Only use GetCloseTabButtonColor() for pre-refresh touchable.

Bug: 868169
Change-Id: I9adeed2a4fd8d57d3ae26e7885f66eb3bcfcd85d
Reviewed-on: https://chromium-review.googlesource.com/1153581
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578769}
parent 412ad67c
...@@ -1683,9 +1683,10 @@ void Tab::OnButtonColorMaybeChanged() { ...@@ -1683,9 +1683,10 @@ void Tab::OnButtonColorMaybeChanged() {
title_->SetEnabledColor(title_color); title_->SetEnabledColor(title_color);
alert_indicator_button_->OnParentTabButtonColorChanged(); alert_indicator_button_->OnParentTabButtonColorChanged();
} }
SkColor icon_color = MD::IsNewerMaterialUi() SkColor icon_color =
? GetCloseTabButtonColor(views::Button::STATE_NORMAL) MD::GetMode() == ui::MaterialDesignController::MATERIAL_TOUCH_OPTIMIZED
: button_color_; ? GetCloseTabButtonColor(views::Button::STATE_NORMAL)
: button_color_;
close_button_->SetIconColors(icon_color); close_button_->SetIconColors(icon_color);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment