From d97382f9fbeb8e969cc7163b1302d7e1373e9e84 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Fri, 7 Jun 2024 12:52:24 +0600 Subject: [PATCH] Explorer plugin native context menu: fix icons being drawn at 32x32 --- Flow.Launcher/ResultListBox.xaml | 1 + .../Helper/ShellContextMenuDisplayHelper.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 38202fcf3..3337b9c93 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -108,6 +108,7 @@ RenderOptions.BitmapScalingMode="Fant" Source="{Binding Image, TargetNullValue={x:Null}}" Stretch="Uniform" + StretchDirection="DownOnly" Style="{DynamicResource ImageIconStyle}" Visibility="{Binding ShowIcon}"> diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs index 860b6b33c..eedc4498a 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs @@ -314,7 +314,7 @@ public static class ShellContextMenuDisplayHelper hBitmap, IntPtr.Zero, Int32Rect.Empty, - BitmapSizeOptions.FromWidthAndHeight(32, 32) + BitmapSizeOptions.FromWidthAndHeight(16, 16) ); if (!DeleteObject(hBitmap))