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

Fix ProfileChooserView button color regression.

r251624 mistakenly removed this GetSystemColor call.

BUG=344593
TEST=New Profile Management UI buttons have the expected blue background on hover; otherwise look as expected.
TBR=sky@chromium.org,noms@chromium.org

Review URL: https://codereview.chromium.org/166273005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251872 0039d316-1c4b-4281-b951-d872f2087c98
parent 3fedb7bc
...@@ -124,8 +124,10 @@ BackgroundColorHoverButton::BackgroundColorHoverButton( ...@@ -124,8 +124,10 @@ BackgroundColorHoverButton::BackgroundColorHoverButton(
BackgroundColorHoverButton::~BackgroundColorHoverButton() {} BackgroundColorHoverButton::~BackgroundColorHoverButton() {}
void BackgroundColorHoverButton::OnPaint(gfx::Canvas* canvas) { void BackgroundColorHoverButton::OnPaint(gfx::Canvas* canvas) {
if ((state() == STATE_PRESSED) || (state() == STATE_HOVERED) || HasFocus()) if ((state() == STATE_PRESSED) || (state() == STATE_HOVERED) || HasFocus()) {
canvas->DrawColor(ui::NativeTheme::kColorId_FocusedMenuItemBackgroundColor); canvas->DrawColor(GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_FocusedMenuItemBackgroundColor));
}
LabelButton::OnPaint(canvas); LabelButton::OnPaint(canvas);
} }
......
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