Skip to content

Commit d97382f

Browse files
committed
Explorer plugin native context menu: fix icons being drawn at 32x32
1 parent 3ee870b commit d97382f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
RenderOptions.BitmapScalingMode="Fant"
109109
Source="{Binding Image, TargetNullValue={x:Null}}"
110110
Stretch="Uniform"
111+
StretchDirection="DownOnly"
111112
Style="{DynamicResource ImageIconStyle}"
112113
Visibility="{Binding ShowIcon}">
113114
<Image.Clip>

Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private static BitmapSource GetBitmapSourceFromHBitmap(IntPtr hBitmap)
314314
hBitmap,
315315
IntPtr.Zero,
316316
Int32Rect.Empty,
317-
BitmapSizeOptions.FromWidthAndHeight(32, 32)
317+
BitmapSizeOptions.FromWidthAndHeight(16, 16)
318318
);
319319

320320
if (!DeleteObject(hBitmap))

0 commit comments

Comments
 (0)