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

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: compiling is always a plus 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_shelf_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f7dc351fa1a63fc6c4ce221dc051173cce29b78..77a1653a199aad189afe9221ed72316286ff85b3 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,
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_shelf_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698