* centers the text for the settings list item as done with BStringItem
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29015 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -364,7 +364,9 @@ SettingsItem::DrawItem(BView *owner, BRect rect, bool drawEverything)
|
|||||||
else
|
else
|
||||||
owner->SetHighColor(kBlack);
|
owner->SetHighColor(kBlack);
|
||||||
|
|
||||||
owner->MovePenTo(rect.left + 4, rect.bottom - 2);
|
font_height fheight;
|
||||||
|
owner->GetFontHeight(&fheight);
|
||||||
|
owner->MovePenTo(rect.left + 4, rect.top + fheight.ascent + 2 + floorf(fheight.leading / 2));
|
||||||
|
|
||||||
owner->DrawString(Text());
|
owner->DrawString(Text());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user