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