Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ui/views/button_drag_utils.cc

Issue 400443002: Use label native theme colors for drag images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/button_drag_utils.cc
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc
index 59a1a4a7f8177eefe6f84610d9baa55f51caf9c6..70237b3f5f3ec182f37cc1c2b8fab140650498db 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()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698