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,
|
fApply->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT,
|
||||||
B_ALIGN_NO_VERTICAL));
|
B_ALIGN_NO_VERTICAL));
|
||||||
|
|
||||||
AddChild(BLayoutBuilder::Group<>()
|
AddChild(BLayoutBuilder::Group<>(B_VERTICAL)
|
||||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
.AddGroup(B_HORIZONTAL)
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
.Add(previewBox)
|
||||||
.Add(previewBox)
|
.Add(rightbox)
|
||||||
.Add(rightbox)
|
|
||||||
.End()
|
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
|
||||||
.Add(fRevert)
|
|
||||||
.Add(fApply)
|
|
||||||
.End()
|
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING)
|
|
||||||
.End()
|
.End()
|
||||||
|
.AddGroup(B_HORIZONTAL)
|
||||||
|
.Add(fRevert)
|
||||||
|
.Add(fApply)
|
||||||
|
.End()
|
||||||
|
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||||
.View());
|
.View());
|
||||||
|
|
||||||
fApply->MakeDefault(true);
|
fApply->MakeDefault(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user