|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 752 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 597 B |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 634 B |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 738 B |
|
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 752 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 774 B |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/app.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/close.png
Normal file
|
After Width: | Height: | Size: 530 B |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/lock.png
Normal file
|
After Width: | Height: | Size: 759 B |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/logoff.png
Normal file
|
After Width: | Height: | Size: 674 B |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/recyclebin.png
Normal file
|
After Width: | Height: | Size: 436 B |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/restart.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/shutdown.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Plugins/Wox.Plugin.Sys/Images/Images/sleep.png
Normal file
|
After Width: | Height: | Size: 760 B |
|
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 530 B |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 759 B |
|
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 674 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
Plugins/Wox.Plugin.Sys/Images/shutdown.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 760 B |
@@ -81,7 +81,7 @@ namespace Wox.Plugin.Sys
|
||||
{
|
||||
Title = "Shutdown",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_shutdown_computer"),
|
||||
IcoPath = "Images\\exit.png",
|
||||
IcoPath = "Images\\shutdown.png",
|
||||
Action = c =>
|
||||
{
|
||||
var reuslt = MessageBox.Show("Are you sure you want to shut the computer down?",
|
||||
@@ -97,7 +97,7 @@ namespace Wox.Plugin.Sys
|
||||
{
|
||||
Title = "Restart",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_restart_computer"),
|
||||
IcoPath = "Images\\restartcomp.png",
|
||||
IcoPath = "Images\\restart.png",
|
||||
Action = c =>
|
||||
{
|
||||
var result = MessageBox.Show("Are you sure you want to restart the computer?",
|
||||
@@ -169,7 +169,7 @@ namespace Wox.Plugin.Sys
|
||||
{
|
||||
Title = "Restart Wox",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_restart"),
|
||||
IcoPath = "Images\\restart.png",
|
||||
IcoPath = "Images\\app.png",
|
||||
Action = c =>
|
||||
{
|
||||
context.API.RestarApp();
|
||||
|
||||
@@ -74,9 +74,6 @@
|
||||
<Content Include="Images\recyclebin.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Images\restartcomp.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Images\sleep.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
@@ -116,11 +113,6 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Images\exit.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Images\logoff.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
@@ -141,6 +133,9 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Images\Images\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 873 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 572 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 634 B |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 836 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 738 B |
@@ -40,7 +40,7 @@ namespace Wox.ImageLoader
|
||||
};
|
||||
|
||||
private readonly ImageCache _cache;
|
||||
private readonly BinaryStorage<ImageCache> _storage;
|
||||
private readonly BinaryStorage<ImageCache> _storage;
|
||||
|
||||
public ImageLoader()
|
||||
{
|
||||
@@ -93,7 +93,7 @@ namespace Wox.ImageLoader
|
||||
public ImageSource Load(string path, bool addToCache = true)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path)) return null;
|
||||
ImageSource img = null;
|
||||
ImageSource image = null;
|
||||
Stopwatch.Debug($"Loading image path: {path}", () =>
|
||||
{
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace Wox.ImageLoader
|
||||
|
||||
if (_imageSources.ContainsKey(path))
|
||||
{
|
||||
img = _imageSources[path];
|
||||
image = _imageSources[path];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -113,27 +113,43 @@ namespace Wox.ImageLoader
|
||||
|
||||
if (path.StartsWith("data:", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
img = new BitmapImage(new Uri(path));
|
||||
image = new BitmapImage(new Uri(path));
|
||||
}
|
||||
else if (SelfExts.Contains(ext) && File.Exists(path))
|
||||
{
|
||||
img = GetIcon(path);
|
||||
image = GetIcon(path);
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(path) && ImageExts.Contains(ext) && File.Exists(path))
|
||||
else if (!string.IsNullOrEmpty(path) && ImageExts.Contains(ext))
|
||||
{
|
||||
img = new BitmapImage(new Uri(path));
|
||||
if (File.Exists(path))
|
||||
{
|
||||
image = new BitmapImage(new Uri(path));
|
||||
}
|
||||
else
|
||||
{
|
||||
path = Path.Combine(WoxDirectroy.Executable, "Images", Path.GetFileName(path));
|
||||
if (File.Exists(path))
|
||||
{
|
||||
image = new BitmapImage(new Uri(path));
|
||||
}
|
||||
else
|
||||
{
|
||||
path = Path.Combine(WoxDirectroy.Executable, "Images", "app.png");
|
||||
image = new BitmapImage(new Uri(path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (img != null && addToCache)
|
||||
if (image != null && addToCache)
|
||||
{
|
||||
if (!_imageSources.ContainsKey(path))
|
||||
{
|
||||
_imageSources[path] = img;
|
||||
_imageSources[path] = image;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
return img;
|
||||
return image;
|
||||
}
|
||||
|
||||
// http://blogs.msdn.com/b/oldnewthing/archive/2011/01/27/10120844.aspx
|
||||
|
||||
BIN
Wox/Images/Browser.png
Normal file
|
After Width: | Height: | Size: 873 B |
BIN
Wox/Images/EXE.png
Normal file
|
After Width: | Height: | Size: 774 B |
BIN
Wox/Images/Link.png
Normal file
|
After Width: | Height: | Size: 796 B |
BIN
Wox/Images/New Message.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
Wox/Images/calculator.png
Normal file
|
After Width: | Height: | Size: 597 B |
BIN
Wox/Images/cancel.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
Wox/Images/close.png
Normal file
|
After Width: | Height: | Size: 530 B |
BIN
Wox/Images/cmd.png
Normal file
|
After Width: | Height: | Size: 752 B |
BIN
Wox/Images/color.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Wox/Images/copy.png
Normal file
|
After Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 506 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 290 B |
BIN
Wox/Images/find.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Wox/Images/folder.png
Normal file
|
After Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 1.3 KiB |
BIN
Wox/Images/image.png
Normal file
|
After Width: | Height: | Size: 634 B |
BIN
Wox/Images/lock.png
Normal file
|
After Width: | Height: | Size: 759 B |
BIN
Wox/Images/logoff.png
Normal file
|
After Width: | Height: | Size: 674 B |
BIN
Wox/Images/ok.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 941 B After Width: | Height: | Size: 792 B |
BIN
Wox/Images/plugin.png
Normal file
|
After Width: | Height: | Size: 269 B |
BIN
Wox/Images/recyclebin.png
Normal file
|
After Width: | Height: | Size: 436 B |
BIN
Wox/Images/restart.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Wox/Images/search.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Wox/Images/settings.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Wox/Images/shutdown.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 760 B |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 470 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 794 B |
BIN
Wox/Images/warning.png
Normal file
|
After Width: | Height: | Size: 738 B |