@@ -49,13 +49,14 @@ StatusView::StatusView(BScrollView* scrollView, uint32 getMessage,
4949 :
5050 controls::StatusView (scrollView),
5151 fPressed (false ),
52- fButtonWidth (B_H_SCROLL_BAR_HEIGHT + kHorzSpacing * 2 ),
52+ fButtonWidth (scrollView-> ScrollBar (B_HORIZONTAL)->Frame().Height() + kHorzSpacing * 2),
5353 fGetMessage(getMessage),
5454 fClearMessage(clearMessage),
5555 fApplyMessage(applyMessage)
5656{
5757 SetFont (be_plain_font);
58- SetFontSize (10 .);
58+ float fontSize = 10 .f * (be_plain_font->Size () / 12 .f );
59+ SetFontSize (fontSize);
5960}
6061
6162
@@ -153,7 +154,7 @@ StatusView::MessageReceived(BMessage* message)
153154
154155 BPoint point = Parent ()->Bounds ().LeftBottom ();
155156 point.x += 2 ; // border width
156- point.y += 3 + B_H_SCROLL_BAR_HEIGHT ;
157+ point.y += 3 + ScrollView ()-> ScrollBar (B_HORIZONTAL)-> Frame (). Height () ;
157158 ConvertToScreen (&point);
158159 BRect clickToOpenRect (Parent ()->Bounds ());
159160 ConvertToScreen (&clickToOpenRect);
@@ -185,7 +186,7 @@ StatusView::_DrawButton(BRect rect)
185186 flags |= BControlLook::B_DISABLED;
186187 be_control_look->DrawButtonBackground (this , rect, rect, baseColor, flags,
187188 BControlLook::B_ALL_BORDERS, B_HORIZONTAL);
188- rect.left += rect.right - B_H_SCROLL_BAR_HEIGHT + 1 ;
189+ rect.left += rect.right - ScrollView ()-> ScrollBar (B_HORIZONTAL)-> Frame (). Height () - 1 ;
189190 rect.bottom -= 2 ;
190191 be_control_look->DrawArrowShape (this , rect, rect, baseColor,
191192 BControlLook::B_DOWN_ARROW, flags, B_DARKEN_MAX_TINT);
0 commit comments