From f437c10c48325acce0a27524dc34fa352b255074 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 1 Jul 2012 19:00:26 +0200 Subject: [PATCH] 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. --- src/preferences/media/MediaListItem.cpp | 2 +- src/preferences/media/MediaWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences/media/MediaListItem.cpp b/src/preferences/media/MediaListItem.cpp index acf68b6bd2..2e1e508d7e 100644 --- a/src/preferences/media/MediaListItem.cpp +++ b/src/preferences/media/MediaListItem.cpp @@ -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; } diff --git a/src/preferences/media/MediaWindow.cpp b/src/preferences/media/MediaWindow.cpp index a96526e47e..a9efbc12ec 100644 --- a/src/preferences/media/MediaWindow.cpp +++ b/src/preferences/media/MediaWindow.cpp @@ -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)