Use existing factory with same margin overrides

This commit is contained in:
John Lewin 2017-08-03 15:00:00 -07:00
parent 282e82eeb0
commit e372b33358
2 changed files with 2 additions and 10 deletions

View file

@ -60,7 +60,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
public void SetBreadCrumbs(ILibraryContainer currentContainer)
{
var buttonFactory = ApplicationController.Instance.Theme.ButtonFactory;
var buttonFactory = ApplicationController.Instance.Theme.SmallMarginButtonFactory;
var linkButtonFactory = ApplicationController.Instance.Theme.LinkButtonFactory;
@ -68,9 +68,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
bool haveFilterRunning = !string.IsNullOrEmpty(currentContainer.KeywordFilter);
var initialMargin = buttonFactory.Margin;
buttonFactory.Options.Margin = new BorderDouble(8, 0);
var icon = LibraryProviderHelpers.LoadInvertIcon("FileDialog", "up_folder_20.png");
//icon = LibraryProviderHelpers.ResizeImage(icon, 20, 20);
@ -85,8 +82,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
}
};
buttonFactory.Options.Margin = initialMargin;
this.AddChild(upbutton);
bool firstItem = true;