Debugger: Improve appearance of TeamsWindow insets and spacing.

The buttons are now aligned to the scroll bar and window resize knob,
by using BControlLook::GetScrollBarWidth. (Hmm, perhaps it might make
more sense to just have scrollbar sizes be a kind of insets, which can
be gotten via B_USE_SCROLL_BAR_INSETS, and then drop this extra method
altogether? After all there are a lot of applications which align to
scroll bars...)
This commit is contained in:
Augustin Cavalier
2022-08-30 22:28:04 -04:00
parent af791479cb
commit 1f72988e61
@@ -14,6 +14,7 @@
#include <Application.h>
#include <Button.h>
#include <ControlLook.h>
#include <File.h>
#include <FilePanel.h>
#include <FindDirectory.h>
@@ -274,9 +275,10 @@ TeamsWindow::_Init()
MSG_SHOW_CONNECTION_CONFIG_WINDOW)))
.End()
.Add(fTeamsListView = new TeamsListView("TeamsList"))
.SetInsets(1.0f, 1.0f, 1.0f, 5.0f)
.AddGroup(B_HORIZONTAL)
.SetInsets(B_USE_DEFAULT_SPACING)
.SetInsets(B_USE_ITEM_SPACING, 0,
be_control_look->GetScrollBarWidth(B_VERTICAL),
be_control_look->GetScrollBarWidth(B_HORIZONTAL))
.Add(fAttachTeamButton = new BButton("Attach", new BMessage(
MSG_DEBUG_THIS_TEAM)))
.AddGlue()