the triangle thumb has 45 degree edges this was, which just look much cleaner

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13467 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-07-05 22:54:39 +00:00
parent 65799d5bbf
commit 21027896c8

View File

@ -1111,12 +1111,10 @@ BSlider::ThumbFrame() const
if (Orientation() == B_HORIZONTAL) { if (Orientation() == B_HORIZONTAL) {
frame.left = (float)floor(Position() * (_MaxPosition() - _MinPosition()) + frame.left = (float)floor(Position() * (_MaxPosition() - _MinPosition()) +
_MinPosition()) - 6; _MinPosition()) - 6;
// TODO: seems this was removed...
// frame.top = 8.0f + (Label() ? textHeight + 4.0f : 0.0f);
frame.right = frame.left + 12.0f; frame.right = frame.left + 12.0f;
frame.bottom = frame.bottom - 2.0f - frame.bottom = frame.bottom - 2.0f -
(MinLimitLabel() || MaxLimitLabel() ? textHeight + 4.0f : 0.0f); (MinLimitLabel() || MaxLimitLabel() ? textHeight + 4.0f : 0.0f);
frame.top = frame.bottom - 7.0f; frame.top = frame.bottom - 8.0f;
} else { } else {
frame.left = floor((frame.Width() - fBarThickness) / 2.0f) - 3; frame.left = floor((frame.Width() - fBarThickness) / 2.0f) - 3;
frame.top = (float)floor(Position() * (_MaxPosition() - _MinPosition())) + frame.top = (float)floor(Position() * (_MaxPosition() - _MinPosition())) +