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:
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
|
#include <ControlLook.h>
|
||||||
#include <File.h>
|
#include <File.h>
|
||||||
#include <FilePanel.h>
|
#include <FilePanel.h>
|
||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
@@ -274,9 +275,10 @@ TeamsWindow::_Init()
|
|||||||
MSG_SHOW_CONNECTION_CONFIG_WINDOW)))
|
MSG_SHOW_CONNECTION_CONFIG_WINDOW)))
|
||||||
.End()
|
.End()
|
||||||
.Add(fTeamsListView = new TeamsListView("TeamsList"))
|
.Add(fTeamsListView = new TeamsListView("TeamsList"))
|
||||||
.SetInsets(1.0f, 1.0f, 1.0f, 5.0f)
|
|
||||||
.AddGroup(B_HORIZONTAL)
|
.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(
|
.Add(fAttachTeamButton = new BButton("Attach", new BMessage(
|
||||||
MSG_DEBUG_THIS_TEAM)))
|
MSG_DEBUG_THIS_TEAM)))
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
|
|||||||
Reference in New Issue
Block a user