Chromium Code Reviews| 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 0d3082de0ae6d8e3c1c400175e42f5e4dee01cf8..6fcd44a45d3d220c3d4b97d428826c82e10797d1 100644 |
| --- a/chrome/browser/ui/views/download/download_item_view_md.cc |
| +++ b/chrome/browser/ui/views/download/download_item_view_md.cc |
| @@ -462,6 +462,7 @@ void DownloadItemViewMd::GetAccessibleState(ui::AXViewState* state) { |
| void DownloadItemViewMd::OnThemeChanged() { |
| UpdateColorsFromTheme(); |
| + SchedulePaint(); |
| } |
| void DownloadItemViewMd::AddInkDropLayer(ui::Layer* ink_drop_layer) { |
| @@ -588,6 +589,12 @@ void DownloadItemViewMd::AnimationProgressed(const gfx::Animation* animation) { |
| } |
| void DownloadItemViewMd::OnPaint(gfx::Canvas* canvas) { |
| + // Make sure to draw |this| opaquely. Since the toolbar color can be partially |
| + // transparent, start with an opaque black backdrop. |
| + canvas->DrawColor(SK_ColorBLACK); |
|
sky
2016/04/05 20:26:55
Why is black the right color here? Sorry for a sim
Evan Stade
2016/04/05 20:46:54
Black seems more right to me than white because an
|
| + canvas->DrawColor( |
| + GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR)); |
| + |
| DrawStatusText(canvas); |
| DrawFilename(canvas); |
| DrawIcon(canvas); |