Use theme color

This commit is contained in:
John Lewin 2017-09-25 14:01:17 -07:00
parent 5a856f6d8f
commit 28e49865b3
3 changed files with 10 additions and 16 deletions

View file

@ -77,11 +77,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
var theme = ApplicationController.Instance.Theme;
var upbutton = new IconButton(AggContext.StaticData.LoadIcon(Path.Combine("FileDialog", "up_folder_20.png")))
{
Name = "Library Up Button",
Margin = new BorderDouble(right: 2)
};
var upbutton = theme.ButtonFactory.GenerateIconButton(AggContext.StaticData.LoadIcon(Path.Combine("FileDialog", "up_folder_20.png")));
upbutton.Name = "Library Up Button";
upbutton.Margin = new BorderDouble(right: 2);
upbutton.Click += (s, e) =>
{
if (listView.ActiveContainer.Parent != null)