From 1231bfebe4b9a9b8e969d4c00c8766ae7d2f57ff Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 6 May 2016 09:42:43 -0700 Subject: [PATCH] Bluetooth Window: Layout tweaks SetBorder(B_NO_BORDER) on tabView. Add a BSeparatorView to draw a line between tabs and bottom buttons Inset by B_USE_WINDOW_SPACING around buttons. (B_USE_DEFAULT_SPACING betwen buttons and the tabview) --- src/preferences/bluetooth/BluetoothWindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/preferences/bluetooth/BluetoothWindow.cpp b/src/preferences/bluetooth/BluetoothWindow.cpp index 540fa49e7a..c624bfc0dd 100644 --- a/src/preferences/bluetooth/BluetoothWindow.cpp +++ b/src/preferences/bluetooth/BluetoothWindow.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -71,6 +72,7 @@ BluetoothWindow::BluetoothWindow(BRect frame) fMenubar->AddItem(menu); BTabView* tabView = new BTabView("tabview", B_WIDTH_FROM_LABEL); + tabView->SetBorder(B_NO_BORDER); fSettingsView = new BluetoothSettingsView(B_TRANSLATE("Settings")); // fConnChan = new ConnChanView("Connections & Channels", B_WILL_DRAW); @@ -88,7 +90,11 @@ BluetoothWindow::BluetoothWindow(BRect frame) .Add(fMenubar) .AddStrut(B_USE_HALF_ITEM_SPACING) .Add(tabView) - .AddGroup(B_HORIZONTAL, B_USE_HALF_ITEM_SPACING) + .AddStrut(B_USE_HALF_ITEM_SPACING) + .Add(new BSeparatorView(B_HORIZONTAL)) + .AddGroup(B_HORIZONTAL) + .SetInsets(B_USE_WINDOW_SPACING, B_USE_DEFAULT_SPACING, + B_USE_WINDOW_SPACING, B_USE_WINDOW_SPACING) .AddGlue() .Add(fDefaultsButton) .Add(fRevertButton)