Added GetThemeImage() function to get a per-editor theme image
This commit is contained in:
parent
a523fa737d
commit
24f76ac298
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user