ScreenSaver: tabs hug window boundary

Taking a page from HaikuDepot's book, remove the border from the tab
view and set the inset to 0 in order to position the tabview right on
the window's edge. Looks a bit better than the previous method since
the tabview border appeared to extend the thickness of the window
border.
This commit is contained in:
John Scipione 2013-09-19 19:03:38 -04:00
parent e7c330c6f3
commit 09c9f21ce4

View File

@ -861,6 +861,7 @@ ScreenSaverWindow::ScreenSaverWindow()
// Create the tab view
fTabView = new BTabView("tab_view", B_WIDTH_FROM_LABEL);
fTabView->SetBorder(B_NO_BORDER);
// Create the controls inside the tabs
fFadeView = new FadeView(B_TRANSLATE("General"), fSettings);
@ -876,7 +877,7 @@ ScreenSaverWindow::ScreenSaverWindow()
B_ALIGN_USE_FULL_HEIGHT));
topView->SetExplicitMinSize(BSize(fMinWidth, fMinHeight));
BLayoutBuilder::Group<>(topView, B_VERTICAL)
.SetInsets(-1, B_USE_SMALL_SPACING, -1, -1)
.SetInsets(0, B_USE_SMALL_SPACING, 0, 0)
.Add(fTabView)
.End();