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.
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
* Stephan Aßmus <[email protected]>
|
* Stephan Aßmus <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "FontSelectionView.h"
|
#include "FontSelectionView.h"
|
||||||
|
|
||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
@@ -121,7 +122,7 @@ FontSelectionView::FontSelectionView(const char* name,
|
|||||||
fPreviewBox = new BBox("preview box", B_WILL_DRAW | B_FRAME_EVENTS);
|
fPreviewBox = new BBox("preview box", B_WILL_DRAW | B_FRAME_EVENTS);
|
||||||
fPreviewBox->AddChild(BGroupLayoutBuilder(B_HORIZONTAL)
|
fPreviewBox->AddChild(BGroupLayoutBuilder(B_HORIZONTAL)
|
||||||
.Add(fPreviewText)
|
.Add(fPreviewText)
|
||||||
.SetInsets(5, 5, 5, 5)
|
.SetInsets(B_USE_SMALL_SPACING, 0, B_USE_SMALL_SPACING, B_USE_SMALL_SPACING)
|
||||||
.TopView()
|
.TopView()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user