diff --git a/Doc/app.ico b/Doc/app.ico new file mode 100644 index 000000000..8e914ac56 Binary files /dev/null and b/Doc/app.ico differ diff --git a/Doc/app.png b/Doc/app.png new file mode 100644 index 000000000..8c9ca7971 Binary files /dev/null and b/Doc/app.png differ diff --git a/Doc/app.psd b/Doc/app.psd index 2ce1b96aa..1694f8d5d 100644 Binary files a/Doc/app.psd and b/Doc/app.psd differ diff --git a/Python.Runtime.dll b/Python.Runtime.dll new file mode 100644 index 000000000..887f7b3bd Binary files /dev/null and b/Python.Runtime.dll differ diff --git a/Wox/Helper/CommonStorage.cs b/Wox.Infrastructure/CommonStorage.cs similarity index 83% rename from Wox/Helper/CommonStorage.cs rename to Wox.Infrastructure/CommonStorage.cs index d920fe112..cfd671ed0 100644 --- a/Wox/Helper/CommonStorage.cs +++ b/Wox.Infrastructure/CommonStorage.cs @@ -1,14 +1,10 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; -using System.Threading; using Newtonsoft.Json; -using Wox.Models; +using Wox.Infrastructure.UserSettings; -namespace Wox.Helper +namespace Wox.Infrastructure { [Serializable] public class CommonStorage @@ -22,14 +18,7 @@ namespace Wox.Helper private CommonStorage() { - //default setting - UserSetting = new UserSetting - { - Theme = "Default", - ReplaceWinR = true, - WebSearches = new List() - }; - + UserSetting = new UserSetting(); UserSelectedRecords = new UserSelectedRecords(); } @@ -81,5 +70,6 @@ namespace Wox.Helper return storage; } } + } } \ No newline at end of file diff --git a/Wox.Infrastructure/Properties/AssemblyInfo.cs b/Wox.Infrastructure/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..d7dfdd271 --- /dev/null +++ b/Wox.Infrastructure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的常规信息通过以下 +// 特性集控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("Wox.Infrastructure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Wox.Infrastructure")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 使此程序集中的类型 +// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, +// 则将该类型上的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("aee57a31-29e5-4f03-a41f-7917910fe90f")] + +// 程序集的版本信息由下面四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, +// 方法是按如下所示使用“*”: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Wox/Models/UserSelectedRecords.cs b/Wox.Infrastructure/UserSettings/UserSelectedRecords.cs similarity index 88% rename from Wox/Models/UserSelectedRecords.cs rename to Wox.Infrastructure/UserSettings/UserSelectedRecords.cs index 158e131dc..214e0c325 100644 --- a/Wox/Models/UserSelectedRecords.cs +++ b/Wox.Infrastructure/UserSettings/UserSelectedRecords.cs @@ -1,12 +1,8 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.Serialization.Formatters.Binary; -using Wox.Helper; using Wox.Plugin; -namespace Wox.Models +namespace Wox.Infrastructure.UserSettings { [Serializable] public class UserSelectedRecords diff --git a/Wox.Infrastructure/UserSettings/UserSetting.cs b/Wox.Infrastructure/UserSettings/UserSetting.cs new file mode 100644 index 000000000..d6f8510ef --- /dev/null +++ b/Wox.Infrastructure/UserSettings/UserSetting.cs @@ -0,0 +1,48 @@ +using System.Collections.Generic; +using System.IO; + +namespace Wox.Infrastructure.UserSettings +{ + public class UserSetting + { + public string Theme { get; set; } + public bool ReplaceWinR { get; set; } + public List WebSearches { get; set; } + + public UserSetting() + { + //default setting + Theme = "Default"; + ReplaceWinR = true; + WebSearches = LoadDefaultWebSearches(); + } + + private List LoadDefaultWebSearches() + { + List webSearches = new List(); + + WebSearch googleWebSearch = new WebSearch() + { + Title = "Google", + ActionWord = "g", + IconPath = Directory.GetCurrentDirectory() + @"\Images\websearch\google.png", + Url = "https://www.google.com/search?q={q}", + Enabled = true + }; + webSearches.Add(googleWebSearch); + + + WebSearch wikiWebSearch = new WebSearch() + { + Title = "Wikipedia", + ActionWord = "wiki", + IconPath = Directory.GetCurrentDirectory() + @"\Images\websearch\wiki.png", + Url = "http://en.wikipedia.org/wiki/{q}", + Enabled = true + }; + webSearches.Add(wikiWebSearch); + + return webSearches; + } + } +} diff --git a/Wox.Infrastructure/UserSettings/WebSearch.cs b/Wox.Infrastructure/UserSettings/WebSearch.cs new file mode 100644 index 000000000..d276eddfb --- /dev/null +++ b/Wox.Infrastructure/UserSettings/WebSearch.cs @@ -0,0 +1,11 @@ +namespace Wox.Infrastructure.UserSettings +{ + public class WebSearch + { + public string Title { get; set; } + public string ActionWord { get; set; } + public string IconPath { get; set; } + public string Url { get; set; } + public bool Enabled { get; set; } + } +} \ No newline at end of file diff --git a/Wox.Infrastructure/Wox.Infrastructure.csproj b/Wox.Infrastructure/Wox.Infrastructure.csproj new file mode 100644 index 000000000..9192eed42 --- /dev/null +++ b/Wox.Infrastructure/Wox.Infrastructure.csproj @@ -0,0 +1,70 @@ + + + + + Debug + AnyCPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3} + Library + Properties + Wox.Infrastructure + Wox.Infrastructure + v3.5 + 512 + ..\ + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Newtonsoft.Json.5.0.8\lib\net35\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {8451ecdd-2ea4-4966-bb0a-7bbc40138e80} + Wox.Plugin + + + + + + \ No newline at end of file diff --git a/Wox.Infrastructure/packages.config b/Wox.Infrastructure/packages.config new file mode 100644 index 000000000..9520f36d8 --- /dev/null +++ b/Wox.Infrastructure/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Wox.Plugin.System/BaseSystemPlugin.cs b/Wox.Plugin.System/BaseSystemPlugin.cs index e78896182..d07dcc269 100644 --- a/Wox.Plugin.System/BaseSystemPlugin.cs +++ b/Wox.Plugin.System/BaseSystemPlugin.cs @@ -12,7 +12,7 @@ namespace Wox.Plugin.System public List Query(Query query) { - if (string.IsNullOrEmpty(query.RawQuery) || query.RawQuery.EndsWith(" ")) return new List(); + if (string.IsNullOrEmpty(query.RawQuery)) return new List(); return QueryInternal(query); } diff --git a/Wox.Plugin.System/ThirdpartyPluginIndicator.cs b/Wox.Plugin.System/ThirdpartyPluginIndicator.cs index 24361a65d..406ef1b81 100644 --- a/Wox.Plugin.System/ThirdpartyPluginIndicator.cs +++ b/Wox.Plugin.System/ThirdpartyPluginIndicator.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Wox.Infrastructure; namespace Wox.Plugin.System { @@ -15,7 +16,7 @@ namespace Wox.Plugin.System List results = new List(); if (string.IsNullOrEmpty(query.RawQuery)) return results; - foreach (PluginMetadata metadata in allPlugins.Select(o=>o.Metadata)) + foreach (PluginMetadata metadata in allPlugins.Select(o => o.Metadata)) { if (metadata.ActionKeyword.StartsWith(query.RawQuery)) { @@ -23,15 +24,27 @@ namespace Wox.Plugin.System Result result = new Result { Title = metadata.ActionKeyword, - SubTitle = string.Format("Activate {0} workflow",metadata.Name), + SubTitle = string.Format("Activate {0} plugin", metadata.Name), Score = 50, IcoPath = "Images/work.png", Action = () => changeQuery(metadataCopy.ActionKeyword + " "), DontHideWoxAfterSelect = true }; - results.Add(result); + results.Add(result); } } + + results.AddRange(CommonStorage.Instance.UserSetting.WebSearches.Where(o => o.ActionWord.StartsWith(query.RawQuery)).Select(n => new Result() + { + + Title = n.ActionWord, + SubTitle = string.Format("Activate {0} plugin", n.ActionWord), + Score = 50, + IcoPath = "Images/work.png", + Action = () => changeQuery(n.ActionWord + " "), + DontHideWoxAfterSelect = true + })); + return results; } diff --git a/Wox.Plugin.System/WebSearchPlugin.cs b/Wox.Plugin.System/WebSearchPlugin.cs new file mode 100644 index 000000000..bbfc85915 --- /dev/null +++ b/Wox.Plugin.System/WebSearchPlugin.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using Newtonsoft.Json; +using Wox.Infrastructure; +using Wox.Infrastructure.UserSettings; + +namespace Wox.Plugin.System +{ + public class WebSearchPlugin : BaseSystemPlugin + { + protected override List QueryInternal(Query query) + { + List results = new List(); + if (string.IsNullOrEmpty(query.ActionName)) return results; + + WebSearch webSearch = + CommonStorage.Instance.UserSetting.WebSearches.FirstOrDefault(o => o.ActionWord == query.ActionName); + + if (webSearch != null) + { + string keyword = query.ActionParameters.Count > 0 ? query.RawQuery.Substring(query.RawQuery.IndexOf(' ') + 1) : ""; + results.Add(new Result() + { + Title = string.Format("Search {0} for {1}", webSearch.Title, keyword), + IcoPath = webSearch.IconPath, + Action = () => Process.Start(webSearch.Url.Replace("{q}", keyword)) + }); + } + + return results; + } + + protected override void InitInternal(PluginInitContext context) + { + } + } +} diff --git a/Wox.Plugin.System/Wox.Plugin.System.csproj b/Wox.Plugin.System/Wox.Plugin.System.csproj index ecd002a74..2dadddea1 100644 --- a/Wox.Plugin.System/Wox.Plugin.System.csproj +++ b/Wox.Plugin.System/Wox.Plugin.System.csproj @@ -47,6 +47,7 @@ + @@ -59,6 +60,10 @@ + + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3} + Wox.Infrastructure + {8451ECDD-2EA4-4966-BB0A-7BBC40138E80} Wox.Plugin diff --git a/Wox.sln b/Wox.sln index 6f2ce1e01..11840b3ed 100644 --- a/Wox.sln +++ b/Wox.sln @@ -19,6 +19,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.Runtime", "Pythonnet EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Plugin.Doc", "Plugins\Wox.Plugin.Doc\Wox.Plugin.Doc.csproj", "{6B6696B1-A547-4FD4-85EF-E1FD0F54AD2C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Infrastructure", "Wox.Infrastructure\Wox.Infrastructure.csproj", "{4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -280,6 +282,34 @@ Global {6B6696B1-A547-4FD4-85EF-E1FD0F54AD2C}.UnitTests|Win32.ActiveCfg = Release|Any CPU {6B6696B1-A547-4FD4-85EF-E1FD0F54AD2C}.UnitTests|x64.ActiveCfg = Release|Any CPU {6B6696B1-A547-4FD4-85EF-E1FD0F54AD2C}.UnitTests|x86.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Win32.ActiveCfg = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x64.ActiveCfg = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x86.ActiveCfg = Debug|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|Any CPU.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|Any CPU.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|Mixed Platforms.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|Mixed Platforms.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|Win32.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|x64.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.EmbeddingTest|x86.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Any CPU.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Win32.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x64.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x86.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|Any CPU.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|Any CPU.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|Mixed Platforms.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|Mixed Platforms.Build.0 = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|Win32.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|x64.ActiveCfg = Release|Any CPU + {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.UnitTests|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Wox/Images/app.png b/Wox/Images/app.png index d24f3550d..8c9ca7971 100644 Binary files a/Wox/Images/app.png and b/Wox/Images/app.png differ diff --git a/Wox/Images/websearch/google.png b/Wox/Images/websearch/google.png new file mode 100644 index 000000000..abcb77e76 Binary files /dev/null and b/Wox/Images/websearch/google.png differ diff --git a/Wox/Images/websearch/wiki.png b/Wox/Images/websearch/wiki.png new file mode 100644 index 000000000..8431136bd Binary files /dev/null and b/Wox/Images/websearch/wiki.png differ diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index 967e636bf..1327c87c1 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -12,6 +12,7 @@ using System.Windows.Input; using System.Windows.Media.Animation; using Wox.Commands; using Wox.Helper; +using Wox.Infrastructure; using Wox.Plugin; using Wox.PluginLoader; using Application = System.Windows.Application; diff --git a/Wox/Models/UserSetting.cs b/Wox/Models/UserSetting.cs deleted file mode 100644 index a3cf980aa..000000000 --- a/Wox/Models/UserSetting.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Models -{ - public class UserSetting - { - public string Theme { get; set; } - public bool ReplaceWinR { get; set; } - public List WebSearches { get; set; } - } -} diff --git a/Wox/Models/WebSearch.cs b/Wox/Models/WebSearch.cs deleted file mode 100644 index b786abd96..000000000 --- a/Wox/Models/WebSearch.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Wox.Models -{ - public class WebSearch - { - public string Keyword { get; set; } - public string IconPath { get; set; } - public string Website { get; set; } - public string Enabled { get; set; } - } -} \ No newline at end of file diff --git a/Wox/ResultItem.xaml b/Wox/ResultItem.xaml index d4004599e..6eecb91e8 100644 --- a/Wox/ResultItem.xaml +++ b/Wox/ResultItem.xaml @@ -15,12 +15,12 @@ - + - - + + - Title + Title sub title diff --git a/Wox/ResultItem.xaml.cs b/Wox/ResultItem.xaml.cs index 65c6c5c0b..dc29a993f 100644 --- a/Wox/ResultItem.xaml.cs +++ b/Wox/ResultItem.xaml.cs @@ -9,6 +9,7 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using Wox.Annotations; using Wox.Helper; +using Wox.Infrastructure; using Wox.Plugin; using Brush = System.Windows.Media.Brush; @@ -16,7 +17,6 @@ namespace Wox { public partial class ResultItem : UserControl, INotifyPropertyChanged { - private bool selected; public Result Result { get; private set; } @@ -55,6 +55,10 @@ namespace Wox tbTitle.Text = result.Title; tbSubTitle.Text = result.SubTitle; + if (string.IsNullOrEmpty(result.SubTitle)) + { + SubTitleRowDefinition.Height = new GridLength(0); + } string path = string.Empty; if (!string.IsNullOrEmpty(result.IcoPath) && result.IcoPath.Contains(":\\") && File.Exists(result.IcoPath)) { diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index 9bc73c2aa..6a5bd51cf 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -26,28 +26,28 @@ - + - + - + - + - + - + diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 15ffe0d14..91f05bdca 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Windows; using System.Windows.Controls; using Wox.Helper; +using Wox.Infrastructure; namespace Wox { @@ -38,6 +39,7 @@ namespace Wox themeComboBox.SelectedItem = CommonStorage.Instance.UserSetting.Theme; cbReplaceWinR.IsChecked = CommonStorage.Instance.UserSetting.ReplaceWinR; + webSearchView.ItemsSource = CommonStorage.Instance.UserSetting.WebSearches; } private List LoadAvailableThemes() diff --git a/Wox/WebSearchSetting.xaml b/Wox/WebSearchSetting.xaml index 073a1f72a..ab9f36be0 100644 --- a/Wox/WebSearchSetting.xaml +++ b/Wox/WebSearchSetting.xaml @@ -4,45 +4,30 @@ Icon="Images\app.png" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" - Title="WebSearchSetting" Height="400" Width="674.766"> + Title="WebSearchSetting" Height="300" Width="674.766"> - - - - - - Search URL: - - Perform a search on a website and copy the result URL. Replace your search term with {query} in curly brackets + Title: + - Title: - - What to show in the Wox. The search query is automatically appended for clarity. + URL: + - Keyword: - - What you type to use this shortcut. - - Validation: - - - - - Type some text and click test to check it works. + ActionWord: + - + diff --git a/Wox/WebSearchSetting.xaml.cs b/Wox/WebSearchSetting.xaml.cs index 3e20b971e..b094da3dc 100644 --- a/Wox/WebSearchSetting.xaml.cs +++ b/Wox/WebSearchSetting.xaml.cs @@ -10,6 +10,9 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; +using Wox.Helper; +using Wox.Infrastructure; +using Wox.Infrastructure.UserSettings; namespace Wox { @@ -24,5 +27,45 @@ namespace Wox { Close(); } + + private void btnAdd_OnClick(object sender, RoutedEventArgs e) + { + string title = tbTitle.Text; + if (string.IsNullOrEmpty(title)) + { + MessageBox.Show("Please input Title field"); + return; + } + + string url = tbUrl.Text; + if (string.IsNullOrEmpty(url)) + { + MessageBox.Show("Please input URL field"); + return; + } + + string action = tbActionword.Text; + if (string.IsNullOrEmpty(action)) + { + MessageBox.Show("Please input ActionWord field"); + return; + } + if (CommonStorage.Instance.UserSetting.WebSearches.Exists(o => o.ActionWord == action)) + { + MessageBox.Show("ActionWord has existed, please input a new one."); + return; + } + + CommonStorage.Instance.UserSetting.WebSearches.Add(new WebSearch() + { + ActionWord = action, + Enabled = true, + IconPath="", + Url = url, + Title = title + }); + CommonStorage.Instance.Save(); + MessageBox.Show("Succeed!"); + } } } diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index c0df5d68f..865cc9ce7 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -119,9 +119,6 @@ - - - @@ -140,7 +137,6 @@ ResultItem.xaml - SettingWindow.xaml @@ -221,6 +217,10 @@ {097b4ac0-74e9-4c58-bcf8-c69746ec8271} Python.Runtime + + {4fd29318-a8ab-4d8f-aa47-60bc241b8da3} + Wox.Infrastructure + {69ce0206-cb41-453d-88af-df86092ef9b8} Wox.Plugin.System @@ -277,7 +277,7 @@ - xcopy /Y $(ProjectDir)Images\*.* $(TargetDir)Images\ + xcopy /Y /S $(ProjectDir)Images\*.* $(TargetDir)Images\ xcopy /Y $(ProjectDir)app.ico $(TargetDir) xcopy /Y $(ProjectDir)Themes\*.* $(TargetDir)Themes\ diff --git a/Wox/app.ico b/Wox/app.ico index c5f72ba8b..8e914ac56 100644 Binary files a/Wox/app.ico and b/Wox/app.ico differ diff --git a/Wox/app.png b/Wox/app.png index d24f3550d..8c9ca7971 100644 Binary files a/Wox/app.png and b/Wox/app.png differ