diff options
author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 07:37:55 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 07:37:55 +0000 |
commit | c24a7822752da7d7c25f430856c5bc723b97a7ce (patch) | |
tree | 41842c037ea81c5175bd971a4a0b7728cb8ba16a /ui/views/controls/button/text_button.cc | |
parent | d92134c12f51937ee234731249986ee31adf86bf (diff) | |
download | chromium_src-c24a7822752da7d7c25f430856c5bc723b97a7ce.zip chromium_src-c24a7822752da7d7c25f430856c5bc723b97a7ce.tar.gz chromium_src-c24a7822752da7d7c25f430856c5bc723b97a7ce.tar.bz2 |
make dragging button from omnibox not look crappy on Windows Aura
The default button color and background color makes the text
illegible when rendering button for drag. Black on white matches
non-Aura.
Good on top, bad on bottom:
http://i.imgur.com/nvy29UP.png
R=sadrul@chromium.org,ben@chromium.org
BUG=224425
Review URL: https://chromiumcodereview.appspot.com/22453003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/button/text_button.cc')
-rw-r--r-- | ui/views/controls/button/text_button.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/controls/button/text_button.cc b/ui/views/controls/button/text_button.cc index aba3941..a02d6b2 100644 --- a/ui/views/controls/button/text_button.cc +++ b/ui/views/controls/button/text_button.cc @@ -481,7 +481,7 @@ void TextButtonBase::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) { #if defined(OS_WIN) // TODO(erg): Either port DrawStringWithHalo to linux or find an // alternative here. - canvas->DrawStringWithHalo(text_, font_, text_color, color_highlight_, + canvas->DrawStringWithHalo(text_, font_, SK_ColorBLACK, SK_ColorWHITE, text_bounds.x(), text_bounds.y(), text_bounds.width(), text_bounds.height(), draw_string_flags); #else |