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

Unified Diff: chrome/browser/ui/views/download/download_shelf_view.cc

Issue 2094553002: MD - Fix coloring of buttons on DL shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/download/download_shelf_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_view.cc b/chrome/browser/ui/views/download/download_shelf_view.cc
index e474e4c0bc5057d37580f48a5108e06b72034183..f5dc22870c4748d7ca6126975311380827fad816 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_view.cc
@@ -392,7 +392,11 @@ void DownloadShelfView::UpdateColorsFromTheme() {
set_background(views::Background::CreateSolidBackground(
GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR)));
- if (!ui::MaterialDesignController::IsModeMaterial()) {
+ if (ui::MaterialDesignController::IsModeMaterial()) {
+ static_cast<views::LabelButton*>(show_all_view_)
sky 2016/06/23 15:28:00 grumble, static_cast, grumble. This cast is easy t
Evan Stade 2016/06/23 17:05:49 well hopefully we'll be able to rip out non-md cod
+ ->SetEnabledTextColors(GetThemeProvider()->GetColor(
+ ThemeProperties::COLOR_BOOKMARK_TEXT));
+ } else {
views::Link* show_all_view = static_cast<views::Link*>(show_all_view_);
show_all_view->SetBackgroundColor(background()->get_color());
show_all_view->SetEnabledColor(
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | ui/native_theme/native_theme_dark_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698