From 80e5b062feac90cc1769ef4ec3cb063702a15052 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 30 May 2013 20:40:45 -0400 Subject: [PATCH] Appearance: Use font relative spacing insets for the preview boxes Set the top inset to 0 since BBox's now have a natural top offset. --- src/preferences/appearance/FontSelectionView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/preferences/appearance/FontSelectionView.cpp b/src/preferences/appearance/FontSelectionView.cpp index 9e5c0a2e55..084ce2f80b 100644 --- a/src/preferences/appearance/FontSelectionView.cpp +++ b/src/preferences/appearance/FontSelectionView.cpp @@ -10,6 +10,7 @@ * Stephan Aßmus */ + #include "FontSelectionView.h" #include @@ -121,7 +122,7 @@ FontSelectionView::FontSelectionView(const char* name, fPreviewBox = new BBox("preview box", B_WILL_DRAW | B_FRAME_EVENTS); fPreviewBox->AddChild(BGroupLayoutBuilder(B_HORIZONTAL) .Add(fPreviewText) - .SetInsets(5, 5, 5, 5) + .SetInsets(B_USE_SMALL_SPACING, 0, B_USE_SMALL_SPACING, B_USE_SMALL_SPACING) .TopView() ); }