BSpinner: Draw spinner plus sign better
The plus was a bit too tall making it look odd.
This commit is contained in:
parent
7d8eb4d7f9
commit
6a634757e6
|
@ -432,8 +432,8 @@ SpinnerButton::Draw(BRect updateRect)
|
||||||
BPoint(rect.right, rect.top + halfHeight));
|
BPoint(rect.right, rect.top + halfHeight));
|
||||||
if (fSpinnerDirection == SPINNER_INCREMENT) {
|
if (fSpinnerDirection == SPINNER_INCREMENT) {
|
||||||
float halfWidth = floorf(rect.Width() / 2);
|
float halfWidth = floorf(rect.Width() / 2);
|
||||||
StrokeLine(BPoint(rect.left + halfWidth, rect.top),
|
StrokeLine(BPoint(rect.left + halfWidth, rect.top + 1),
|
||||||
BPoint(rect.left + halfWidth, rect.bottom));
|
BPoint(rect.left + halfWidth, rect.bottom - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue