Move StringItem text over 4 pixels.

This is so that it does not get draw flush to the edge of the
list view and there is just a bit of padding between the left
edge and where the text starts. The 4 pixels matches other
places that override the DrawItem() method (like Tracker prefs).
This commit is contained in:
John Scipione 2012-11-23 21:30:29 -05:00
parent 1d5e2248f2
commit 4807bf0849

View File

@ -85,7 +85,7 @@ BStringItem::DrawItem(BView *owner, BRect frame, bool complete)
owner->FillRect(frame);
}
owner->MovePenTo(frame.left, frame.top + fBaselineOffset);
owner->MovePenTo(frame.left + 4, frame.top + fBaselineOffset);
if (!IsEnabled()) {
rgb_color textColor = ui_color(B_LIST_ITEM_TEXT_COLOR);