diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 04:35:10 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 04:35:10 +0000 |
commit | f6c2b1f6891f10387fdcf44887ade9c2d3d8577c (patch) | |
tree | a30390adc75337fe2b11a0f8ad552ad4ef10cc7d | |
parent | 126298e45f2bb2c731617b2d4eada0e74eae67a2 (diff) | |
download | chromium_src-f6c2b1f6891f10387fdcf44887ade9c2d3d8577c.zip chromium_src-f6c2b1f6891f10387fdcf44887ade9c2d3d8577c.tar.gz chromium_src-f6c2b1f6891f10387fdcf44887ade9c2d3d8577c.tar.bz2 |
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
-rw-r--r-- | ui/views/button_drag_utils.cc | 4 |
1 files 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()) { |