| 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..ce8a4f969a2b40c080ec5f7801f8f750316a957f 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,13 +589,19 @@ 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);
|
| + canvas->DrawColor(
|
| + GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR));
|
| +
|
| DrawStatusText(canvas);
|
| DrawFilename(canvas);
|
| DrawIcon(canvas);
|
| OnPaintBorder(canvas);
|
|
|
| if (HasFocus())
|
| - canvas->DrawFocusRect(GetLocalBounds());
|
| + views::CustomButton::PaintMdFocusRing(canvas, this);
|
| }
|
|
|
| int DownloadItemViewMd::GetYForFilenameText() const {
|
|
|