Fixed Image Errors + Handing Bad ShellRun

This commit is contained in:
Aaron Campf
2014-05-08 15:58:38 -07:00
parent 0b70c5225d
commit 7c2e2a01c2
7 changed files with 144 additions and 150 deletions

View File

@@ -455,6 +455,12 @@ namespace Wox {
}
public void SetTheme(string themeName) {
//Uri uri = new Uri("Themes/Default.xaml", UriKind.Relative);
//System.Windows.Resources.StreamResourceInfo info = Application.GetResourceStream(uri);
//System.Windows.Markup.XamlReader reader = new System.Windows.Markup.XamlReader();
var dict = new ResourceDictionary {
Source = new Uri(Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "Themes\\" + themeName + ".xaml"), UriKind.Absolute)
};