Backgrounds: Refactor view layout code
* Eliminate an uneeded group level, top level is B_VERTICAL * Remove B_USE_DEFAULT_SPACING calls, use default param instead
This commit is contained in:
parent
919be4f0a4
commit
6aea66ee0d
@ -209,18 +209,16 @@ BackgroundsView::BackgroundsView()
|
||||
fApply->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT,
|
||||
B_ALIGN_NO_VERTICAL));
|
||||
|
||||
AddChild(BLayoutBuilder::Group<>()
|
||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||
.Add(previewBox)
|
||||
.Add(rightbox)
|
||||
.End()
|
||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||
.Add(fRevert)
|
||||
.Add(fApply)
|
||||
.End()
|
||||
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||
AddChild(BLayoutBuilder::Group<>(B_VERTICAL)
|
||||
.AddGroup(B_HORIZONTAL)
|
||||
.Add(previewBox)
|
||||
.Add(rightbox)
|
||||
.End()
|
||||
.AddGroup(B_HORIZONTAL)
|
||||
.Add(fRevert)
|
||||
.Add(fApply)
|
||||
.End()
|
||||
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||
.View());
|
||||
|
||||
fApply->MakeDefault(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user