Fixes to ui scaling

This commit is contained in:
LarsBrubaker 2020-07-22 08:05:39 -07:00
parent eef20b42b8
commit 3431651654
17 changed files with 59 additions and 60 deletions

View file

@ -148,22 +148,6 @@ namespace MatterHackers.MatterControl.PrintLibrary
allControls.AddChild(toolbar);
var showFolders = new ExpandCheckboxButton("Folders".Localize(), theme)
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit | VAnchor.Center,
Margin = theme.ButtonSpacing,
Name = "Show Folders Toggle",
Checked = UserSettings.Instance.ShowContainers,
};
showFolders.SetIconMargin(theme.ButtonSpacing);
showFolders.CheckedStateChanged += async (s, e) =>
{
UserSettings.Instance.set(UserSettingsKey.ShowContainers, showFolders.Checked ? "1" : "0");
await libraryView.Reload();
};
toolbar.AddChild(showFolders);
PopupMenuButton viewMenuButton;
toolbar.AddChild(