RadioButton: Scale mark to font size
This way the amount of inset varies, small font get small inset, large fonts get large inset.
This commit is contained in:
parent
c7756ee15a
commit
22af0f18be
@ -558,7 +558,10 @@ BControlLook::DrawRadioButton(BView* view, BRect& rect, const BRect& updateRect,
|
||||
rgb_color markColor;
|
||||
if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
|
||||
view->SetHighColor(markColor);
|
||||
rect.InsetBy(3, 3);
|
||||
BFont font;
|
||||
view->GetFont(&font);
|
||||
float inset = roundf(font.Size() / 4);
|
||||
rect.InsetBy(inset, inset);
|
||||
view->FillEllipse(rect);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user