Settings sidebar defaults to collapsed, tune library sidebar width

This commit is contained in:
John Lewin 2017-06-12 16:09:49 -07:00
parent 26091a26cb
commit 39e8d67327
2 changed files with 3 additions and 5 deletions

View file

@ -63,7 +63,7 @@ namespace MatterHackers.MatterControl
var library3DViewSplitter = new Splitter()
{
Padding = new BorderDouble(4),
SplitterDistance = 590,
SplitterDistance = 410,
SplitterWidth = 10,
SplitterBackground = ApplicationController.Instance.Theme.SplitterBackground
};

View file

@ -42,16 +42,14 @@ namespace MatterHackers.MatterControl.CustomWidgets
{
public class DockingTabControl : GuiWidget
{
public bool ControlIsPinned { get; set; } = true;
// TODO: Pinned state should preferably come from MCWS, default to local data if guest and be per user not printer
public bool ControlIsPinned { get; set; } = false;
private GuiWidget topToBottom;
Dictionary<string, GuiWidget> allTabs = new Dictionary<string, GuiWidget>();
public DockingTabControl()
{
// load up the state data for this control and printer
// ActiveSliceSettings.Instance.PrinterSelected
ControlIsPinned = true;
}
public void AddPage(string name, GuiWidget widget)