From f6c2b1f6891f10387fdcf44887ade9c2d3d8577c Mon Sep 17 00:00:00 2001 From: "msw@chromium.org" Date: Thu, 17 Jul 2014 04:35:10 +0000 Subject: Use label native theme colors for drag images. r280376 changed the button drag image painting code. The label colors used make the text appear blurry. Use label native theme colors instead of button colors. (the black-on-white looks better than black-on-gray) See before/after pics at http://crbug.com/394245#c4 BUG=394245 TEST=Bookmark/URL drag images look okay. R=sky@chromium.org Review URL: https://codereview.chromium.org/400443002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283644 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/views/button_drag_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc index 59a1a4a..70237b3 100644 --- a/ui/views/button_drag_utils.cc +++ b/ui/views/button_drag_utils.cc @@ -47,9 +47,9 @@ void SetDragImage(const GURL& url, const ui::NativeTheme* theme = widget ? widget->GetNativeTheme() : ui::NativeTheme::instance(); button.SetTextColor(views::Button::STATE_NORMAL, - theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonEnabledColor)); + theme->GetSystemColor(ui::NativeTheme::kColorId_LabelEnabledColor)); gfx::ShadowValues shadows(10, gfx::ShadowValue(gfx::Point(0,0), 1.0f, - theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonBackgroundColor))); + theme->GetSystemColor(ui::NativeTheme::kColorId_LabelBackgroundColor))); button.SetTextShadows(shadows); button.set_max_size(gfx::Size(kLinkDragImageMaxWidth, 0)); if (icon.isNull()) { -- cgit v1.1