Gravity: Use LayoutBuilder directly on view

This commit is contained in:
John Scipione 2016-04-13 14:22:47 -07:00
parent 263e936e87
commit ebfc2fc68e
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,6 @@ ConfigView::ConfigView(BRect frame, Gravity* parent)
fShadeList(new BListView(B_EMPTY_STRING, B_SINGLE_SELECTION_LIST,
B_WILL_DRAW | B_NAVIGABLE))
{
SetLayout(new BGroupLayout(B_HORIZONTAL));
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
fShadeList->SetSelectionMessage(new BMessage(kMsgShade));
@ -62,7 +61,7 @@ ConfigView::ConfigView(BRect frame, Gravity* parent)
fCountSlider->SetModificationMessage(new BMessage(kMsgSize));
fCountSlider->SetValue(parent->Config.ParticleCount);
AddChild(BLayoutBuilder::Group<>(B_VERTICAL, B_USE_DEFAULT_SPACING)
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
.AddGroup(B_VERTICAL, 0)
.Add(fTitleString)
.Add(fAuthorString)
@ -70,7 +69,8 @@ ConfigView::ConfigView(BRect frame, Gravity* parent)
.Add(fShadeString)
.Add(fShadeScroll)
.Add(fCountSlider)
.SetInsets(B_USE_DEFAULT_SPACING));
.SetInsets(B_USE_DEFAULT_SPACING)
.End();
}