From 24f76ac2983115a810c7648fa9369d24bdec6a27 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 4 May 2015 12:42:06 -0400 Subject: [PATCH] Added GetThemeImage() function to get a per-editor theme image --- .../Editor.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editor.cs b/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editor.cs index 5b77000d..78ddf90f 100644 --- a/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editor.cs +++ b/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editor.cs @@ -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); + } } }