Update image for format not supported images

This commit is contained in:
Jack251970 2024-12-03 14:07:56 +08:00
parent 4830988c55
commit 3f413d17ec
4 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ namespace Flow.Launcher.Infrastructure
public static readonly string ErrorIcon = Path.Combine(ImagesDirectory, "app_error.png");
public static readonly string MissingImgIcon = Path.Combine(ImagesDirectory, "app_missing_img.png");
public static readonly string LoadingImgIcon = Path.Combine(ImagesDirectory, "loading.png");
public static readonly string NoImageIcon = Path.Combine(ImagesDirectory, "no_image.png");
public static readonly string ImageIcon = Path.Combine(ImagesDirectory, "image.png");
public static string PythonPath;
public static string NodePath;

View file

@ -22,7 +22,7 @@ namespace Flow.Launcher.Infrastructure.Image
private static readonly ConcurrentDictionary<string, string> GuidToKey = new();
private static IImageHashGenerator _hashGenerator;
private static readonly bool EnableImageHash = true;
public static ImageSource NoImage { get; } = new BitmapImage(new Uri(Constant.NoImageIcon));
public static ImageSource Image { get; } = new BitmapImage(new Uri(Constant.ImageIcon));
public static ImageSource MissingImage { get; } = new BitmapImage(new Uri(Constant.MissingImgIcon));
public static ImageSource LoadingImage { get; } = new BitmapImage(new Uri(Constant.LoadingImgIcon));
public const int SmallIconSize = 64;
@ -223,7 +223,7 @@ namespace Flow.Launcher.Infrastructure.Image
}
catch (NotSupportedException)
{
image = NoImage;
image = Image;
type = ImageType.Error;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 687 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB