Use font relative spacing units
This commit is contained in:
@@ -799,16 +799,16 @@ FindPanel::FindPanel(BFile* node, FindWindow* parent, bool fromTemplate,
|
|||||||
fRecentQueries);
|
fRecentQueries);
|
||||||
queryBox->SetLabel(recentQueriesMenuField);
|
queryBox->SetLabel(recentQueriesMenuField);
|
||||||
|
|
||||||
BGroupView* queryBoxView = new BGroupView(B_VERTICAL, 10.0);
|
BGroupView* queryBoxView = new BGroupView(B_VERTICAL, B_USE_DEFAULT_SPACING);
|
||||||
queryBoxView->GroupLayout()->SetInsets(10, 10, 10, 10);
|
queryBoxView->GroupLayout()->SetInsets(B_USE_DEFAULT_SPACING);
|
||||||
queryBox->AddChild(queryBoxView);
|
queryBox->AddChild(queryBoxView);
|
||||||
|
|
||||||
icon->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_BOTTOM));
|
icon->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_BOTTOM));
|
||||||
button->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
|
button->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
|
||||||
|
|
||||||
BLayoutBuilder::Group<>(queryBoxView, B_VERTICAL, 10.0)
|
BLayoutBuilder::Group<>(queryBoxView, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||||
.SetInsets(10, 10, 10, 10)
|
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||||
.AddGroup(B_HORIZONTAL, 1.0)
|
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
||||||
.Add(fMimeTypeField)
|
.Add(fMimeTypeField)
|
||||||
.Add(mimeTypeFieldSpacer)
|
.Add(mimeTypeFieldSpacer)
|
||||||
.Add(searchModeField)
|
.Add(searchModeField)
|
||||||
@@ -817,10 +817,10 @@ FindPanel::FindPanel(BFile* node, FindWindow* parent, bool fromTemplate,
|
|||||||
.End()
|
.End()
|
||||||
.Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER))
|
.Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER))
|
||||||
.Add(queryControls);
|
.Add(queryControls);
|
||||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 10.0)
|
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||||
.SetInsets(10, 10, 10, 10)
|
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||||
.Add(queryBox)
|
.Add(queryBox)
|
||||||
.AddGroup(B_HORIZONTAL, 10.0)
|
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||||
.Add(icon)
|
.Add(icon)
|
||||||
.AddGroup(B_VERTICAL)
|
.AddGroup(B_VERTICAL)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL)
|
||||||
|
|||||||
Reference in New Issue
Block a user