Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1117)

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 1958453002: Update some secondary UI buttons to MD style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index a804f4b5404e629b25ff184b071240cd228e1cca..6d2e02def860a2a502495972589d93a517b07ec7 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -172,8 +172,8 @@ views::MdTextButton* InfoBarView::CreateMdTextButton(
DCHECK(ui::MaterialDesignController::IsModeMaterial());
views::MdTextButton* button =
views::MdTextButton::CreateMdButton(listener, text);
- button->SetTextColor(views::Button::STATE_NORMAL, GetInfobarTextColor());
- button->SetTextColor(views::Button::STATE_HOVERED, GetInfobarTextColor());
+ // TODO(estade): can we just remove this?
+ button->SetEnabledTextColors(GetInfobarTextColor());
return button;
}
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/location_bar/zoom_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698