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

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: 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 cb32b4cc4b67966a52bf5dca8866de6c718951d9..a13b8b4cae3f1a0a9aa6de7f54349ef6366d72bd 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -803,13 +803,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,

Powered by Google App Engine
This is Rietveld 408576698