Added GetThemeImage() function to get a per-editor theme image

This commit is contained in:
Michael Becker 2015-05-04 12:42:06 -04:00
parent a523fa737d
commit 24f76ac298

View File

@ -479,5 +479,16 @@ namespace UniversalEditor.UserInterface.WindowsForms
}
}
}
public Image GetThemeImage(string path)
{
string fileName = String.Join(System.IO.Path.DirectorySeparatorChar.ToString(), new string[]
{
"Editors",
this.GetType().FullName,
path
});
return AwesomeControls.Theming.Theme.CurrentTheme.GetImage(fileName);
}
}
}