From 21027896c8a8d887259c63e9cc70d59f9c9cd773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 5 Jul 2005 22:54:39 +0000 Subject: [PATCH] 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 --- src/kits/interface/Slider.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/interface/Slider.cpp b/src/kits/interface/Slider.cpp index 8a80e076c2..1513d6320a 100644 --- a/src/kits/interface/Slider.cpp +++ b/src/kits/interface/Slider.cpp @@ -1111,12 +1111,10 @@ BSlider::ThumbFrame() const if (Orientation() == B_HORIZONTAL) { frame.left = (float)floor(Position() * (_MaxPosition() - _MinPosition()) + _MinPosition()) - 6; -// TODO: seems this was removed... -// frame.top = 8.0f + (Label() ? textHeight + 4.0f : 0.0f); frame.right = frame.left + 12.0f; frame.bottom = frame.bottom - 2.0f - (MinLimitLabel() || MaxLimitLabel() ? textHeight + 4.0f : 0.0f); - frame.top = frame.bottom - 7.0f; + frame.top = frame.bottom - 8.0f; } else { frame.left = floor((frame.Width() - fBarThickness) / 2.0f) - 3; frame.top = (float)floor(Position() * (_MaxPosition() - _MinPosition())) +