WebPositive: improves the layout of Proxy server tab
* Fixes #14647 Change-Id: I6501e44ab836f6ed4c0a3b67a47b4ed9c9177064 Reviewed-on: https://review.haiku-os.org/634 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -470,31 +470,23 @@ SettingsWindow::_CreateProxyPage(float spacing)
|
|||||||
fProxyPasswordControl->SetText(
|
fProxyPasswordControl->SetText(
|
||||||
fSettings->GetValue(kSettingsKeyProxyPassword, ""));
|
fSettings->GetValue(kSettingsKeyProxyPassword, ""));
|
||||||
|
|
||||||
BView* view = BGroupLayoutBuilder(B_VERTICAL, 0)
|
BView* view = BGridLayoutBuilder(spacing / 2, spacing / 2)
|
||||||
.Add(fUseProxyCheckBox)
|
.Add(fUseProxyCheckBox, 0, 0, 2)
|
||||||
.Add(BGridLayoutBuilder(spacing / 2, spacing / 2)
|
.Add(fProxyAddressControl->CreateLabelLayoutItem(), 0, 1)
|
||||||
.Add(fProxyAddressControl->CreateLabelLayoutItem(), 0, 0)
|
.Add(fProxyAddressControl->CreateTextViewLayoutItem(), 1, 1, 2)
|
||||||
.Add(fProxyAddressControl->CreateTextViewLayoutItem(), 1, 0)
|
.Add(fProxyPortControl->CreateLabelLayoutItem(), 0, 2)
|
||||||
|
.Add(fProxyPortControl->CreateTextViewLayoutItem(), 1, 2, 2)
|
||||||
.Add(fProxyPortControl->CreateLabelLayoutItem(), 0, 1)
|
.Add(BSpaceLayoutItem::CreateVerticalStrut(spacing), 0, 3)
|
||||||
.Add(fProxyPortControl->CreateTextViewLayoutItem(), 1, 1)
|
.Add(fUseProxyAuthCheckBox, 0, 4, 2)
|
||||||
)
|
.Add(fProxyUsernameControl->CreateLabelLayoutItem(), 0, 5)
|
||||||
.Add(BSpaceLayoutItem::CreateVerticalStrut(spacing))
|
.Add(fProxyUsernameControl->CreateTextViewLayoutItem(), 1, 5, 2)
|
||||||
.Add(fUseProxyAuthCheckBox)
|
.Add(fProxyPasswordControl->CreateLabelLayoutItem(), 0, 6)
|
||||||
.Add(BGridLayoutBuilder(spacing / 2, spacing / 2)
|
.Add(fProxyPasswordControl->CreateTextViewLayoutItem(), 1, 6, 2)
|
||||||
.Add(fProxyUsernameControl->CreateLabelLayoutItem(), 0, 0)
|
.Add(BSpaceLayoutItem::CreateGlue(), 0, 7)
|
||||||
.Add(fProxyUsernameControl->CreateTextViewLayoutItem(), 1, 0)
|
|
||||||
|
|
||||||
.Add(fProxyPasswordControl->CreateLabelLayoutItem(), 0, 1)
|
|
||||||
.Add(fProxyPasswordControl->CreateTextViewLayoutItem(), 1, 1)
|
|
||||||
)
|
|
||||||
.Add(BSpaceLayoutItem::CreateGlue())
|
|
||||||
|
|
||||||
.SetInsets(B_USE_WINDOW_SPACING, B_USE_WINDOW_SPACING,
|
.SetInsets(B_USE_WINDOW_SPACING, B_USE_WINDOW_SPACING,
|
||||||
B_USE_WINDOW_SPACING, B_USE_DEFAULT_SPACING)
|
B_USE_WINDOW_SPACING, B_USE_DEFAULT_SPACING)
|
||||||
|
.View();
|
||||||
|
|
||||||
.TopView()
|
|
||||||
;
|
|
||||||
view->SetName(B_TRANSLATE("Proxy server"));
|
view->SetName(B_TRANSLATE("Proxy server"));
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user