From 58b016a9c0198780d16b302f654eb456e1b8effc Mon Sep 17 00:00:00 2001 From: cxfksword Date: Thu, 20 Mar 2014 10:01:00 +0800 Subject: [PATCH 1/2] Fix not handle .ico image type --- Plugins/Wox.Plugin.Everything/Main.cs | 2 +- Wox/ImagePathConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Wox.Plugin.Everything/Main.cs b/Plugins/Wox.Plugin.Everything/Main.cs index 29685b46c..c29b3a530 100644 --- a/Plugins/Wox.Plugin.Everything/Main.cs +++ b/Plugins/Wox.Plugin.Everything/Main.cs @@ -11,7 +11,7 @@ namespace Wox.Plugin.Everything { Wox.Plugin.PluginInitContext context; EverythingAPI api = new EverythingAPI(); - private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" }; + private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" }; public List Query(Query query) { diff --git a/Wox/ImagePathConverter.cs b/Wox/ImagePathConverter.cs index 8b88f47c5..3db4550b5 100644 --- a/Wox/ImagePathConverter.cs +++ b/Wox/ImagePathConverter.cs @@ -14,7 +14,7 @@ namespace Wox public class ImagePathConverter : IMultiValueConverter { private static Dictionary imageCache = new Dictionary(); - private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" }; + private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" }; private static ImageSource GetIcon(string fileName) { From 425b20941487d84e574b77dc6b398b82084b7de6 Mon Sep 17 00:00:00 2001 From: cxfksword Date: Thu, 20 Mar 2014 10:05:12 +0800 Subject: [PATCH 2/2] Fix miss default font --- Wox.Infrastructure/CommonStorage.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wox.Infrastructure/CommonStorage.cs b/Wox.Infrastructure/CommonStorage.cs index a7b5c8d2e..07004abac 100644 --- a/Wox.Infrastructure/CommonStorage.cs +++ b/Wox.Infrastructure/CommonStorage.cs @@ -89,6 +89,8 @@ namespace Wox.Infrastructure Instance.UserSetting.WebSearches = Instance.UserSetting.LoadDefaultWebSearches(); Instance.UserSetting.ProgramSources = Instance.UserSetting.LoadDefaultProgramSources(); Instance.UserSetting.Hotkey = "Win + W"; + Instance.UserSetting.QueryBoxFont = FontFamily.GenericSansSerif.Name; + Instance.UserSetting.ResultItemFont = FontFamily.GenericSansSerif.Name; } public static CommonStorage Instance