From 09c9f21ce48c1af30ab4c54ea77687e5fe62fd19 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 19 Sep 2013 19:03:38 -0400 Subject: [PATCH] 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. --- src/preferences/screensaver/ScreenSaverWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/preferences/screensaver/ScreenSaverWindow.cpp b/src/preferences/screensaver/ScreenSaverWindow.cpp index 4d4303cc1a..7822bfe156 100644 --- a/src/preferences/screensaver/ScreenSaverWindow.cpp +++ b/src/preferences/screensaver/ScreenSaverWindow.cpp @@ -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();