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

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

Issue 2439873002: Make all text buttons on download shelf work well with themes, not just (Closed)
Patch Set: dont set bg Created 4 years, 2 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_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 7cbd005bfa6373da77cca23082734c571e6244c0..8c9de062a37a15d9470331fbd4ba7ac5f49a35d8 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -804,13 +804,12 @@ void DownloadItemView::UpdateColorsFromTheme() {
SetBorder(base::MakeUnique<SeparatorBorder>(GetThemeProvider()->GetColor(
ThemeProperties::COLOR_TOOLBAR_VERTICAL_SEPARATOR)));
- SkColor text_color = GetTextColor();
if (dangerous_download_label_)
- dangerous_download_label_->SetEnabledColor(text_color);
+ dangerous_download_label_->SetEnabledColor(GetTextColor());
if (save_button_)
- save_button_->SetEnabledTextColors(text_color);
+ shelf_->ConfigureButtonForTheme(save_button_);
if (discard_button_)
- discard_button_->SetEnabledTextColors(text_color);
+ shelf_->ConfigureButtonForTheme(discard_button_);
}
void DownloadItemView::ShowContextMenuImpl(const gfx::Rect& rect,
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/download/download_shelf_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698