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

Unified Diff: chrome/browser/ui/views/download/download_item_view_md.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_item_view_md.cc
diff --git a/chrome/browser/ui/views/download/download_item_view_md.cc b/chrome/browser/ui/views/download/download_item_view_md.cc
index 0f0d5c2255a4dc0a2ae0c8c581e58ce48720b4ea..6a3856089956bfd81319436ea598426d1152258f 100644
--- a/chrome/browser/ui/views/download/download_item_view_md.cc
+++ b/chrome/browser/ui/views/download/download_item_view_md.cc
@@ -811,10 +811,16 @@ void DownloadItemViewMd::UpdateColorsFromTheme() {
if (!GetThemeProvider())
return;
- if (dangerous_download_label_)
- dangerous_download_label_->SetEnabledColor(GetTextColor());
SetBorder(base::WrapUnique(new SeparatorBorder(GetThemeProvider()->GetColor(
ThemeProperties::COLOR_TOOLBAR_VERTICAL_SEPARATOR))));
+
+ SkColor text_color = GetTextColor();
+ if (dangerous_download_label_)
+ dangerous_download_label_->SetEnabledColor(text_color);
+ if (save_button_)
+ save_button_->SetEnabledTextColors(text_color);
+ if (discard_button_)
+ discard_button_->SetEnabledTextColors(text_color);
}
void DownloadItemViewMd::ShowContextMenuImpl(const gfx::Rect& rect,

Powered by Google App Engine
This is Rietveld 408576698