Small visual changes to left scroll view. Fixes #8659.

Fixed width of left scroll view.
Added padding to list items.
Thanks yourpalal for your hints.
This commit is contained in:
Humdinger 2012-07-01 19:00:26 +02:00
parent 62115b4772
commit f437c10c48
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ struct MediaListItem::Renderer {
width += 8.0f;
// space between icons and text
width += be_plain_font->StringWidth(fTitle) + 3.0f;
width += be_plain_font->StringWidth(fTitle) + 16.0f;
return width;
}

View File

@ -405,7 +405,7 @@ MediaWindow::InitWindow()
BLayoutBuilder::Group<>(this, B_HORIZONTAL)
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
.Add(scrollView)
.Add(scrollView, 0.0f)
.AddGroup(B_VERTICAL)
.SetInsets(0, 0, 0, 0)
.Add(fTitleView)