Skip to content

Commit 6219f49

Browse files
committed
Second attempt
1 parent f9b63cd commit 6219f49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Files.App/UserControls/Widgets/DrivesWidget.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public DriveCardItem(DriveItem item)
3636

3737
public async Task LoadCardThumbnailAsync()
3838
{
39-
thumbnailData = await FileThumbnailHelper.LoadIconWithoutOverlayAsync(Item.Path, Constants.DefaultIconSizes.Large, true, true);
39+
thumbnailData = await FileThumbnailHelper.LoadIconWithoutOverlayAsync(Item.Path, Constants.DefaultIconSizes.Jumbo, true, true);
4040

4141
// Thumbnail data is valid, set the item icon
4242
if (thumbnailData is not null && thumbnailData.Length > 0)

src/Files.App/Utils/Shell/Win32API.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static (byte[]? icon, byte[]? overlay) GetFileIconAndOverlay(string path,
255255

256256
if (shellItem is not null && shellItem.IShellItem is Shell32.IShellItemImageFactory fctry)
257257
{
258-
var flags = Shell32.SIIGBF.SIIGBF_BIGGERSIZEOK;
258+
var flags = Shell32.SIIGBF.SIIGBF_BIGGERSIZEOK | Shell32.SIIGBF.SIIGBF_SCALEUP;
259259

260260
if (getIconOnly)
261261
flags |= Shell32.SIIGBF.SIIGBF_ICONONLY;

0 commit comments

Comments
 (0)