Commit f6c2b1f6 authored by msw@chromium.org's avatar msw@chromium.org

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
parent 126298e4
...@@ -47,9 +47,9 @@ void SetDragImage(const GURL& url, ...@@ -47,9 +47,9 @@ void SetDragImage(const GURL& url,
const ui::NativeTheme* theme = const ui::NativeTheme* theme =
widget ? widget->GetNativeTheme() : ui::NativeTheme::instance(); widget ? widget->GetNativeTheme() : ui::NativeTheme::instance();
button.SetTextColor(views::Button::STATE_NORMAL, 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, 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.SetTextShadows(shadows);
button.set_max_size(gfx::Size(kLinkDragImageMaxWidth, 0)); button.set_max_size(gfx::Size(kLinkDragImageMaxWidth, 0));
if (icon.isNull()) { if (icon.isNull()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment