BSpinner: Draw spinner buttons activated if mouse down

Fixes #13469
This commit is contained in:
John Scipione 2017-11-16 14:11:01 -08:00
parent 6a634757e6
commit aa19dd0236
1 changed files with 4 additions and 2 deletions

View File

@ -379,11 +379,13 @@ SpinnerButton::Draw(BRect updateRect)
else
borders |= be_control_look->B_LEFT_BORDER;
uint32 flags = fIsMouseDown ? BControlLook::B_ACTIVATED : 0;
// draw the button
be_control_look->DrawButtonFrame(this, rect, updateRect,
tint_color(bgColor, frameTint), bgColor, 0, borders);
tint_color(bgColor, frameTint), bgColor, flags, borders);
be_control_look->DrawButtonBackground(this, rect, updateRect,
tint_color(bgColor, bgTint), 0, borders);
tint_color(bgColor, bgTint), flags, borders);
switch (fParent->ButtonStyle()) {
case SPINNER_BUTTON_HORIZONTAL_ARROWS: