Skip to content

Commit 6e460d4

Browse files
authored
Feature: Improved breadcrumb flyout with folder thumbnails (#16028)
1 parent 99c390e commit 6e460d4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Files.App/ViewModels/UserControls/AddressToolbarViewModel.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -659,18 +659,13 @@ public async Task SetPathBoxDropDownFlyoutAsync(MenuFlyout flyout, PathBoxItem p
659659

660660
foreach (var childFolder in childFolders)
661661
{
662-
var isPathItemFocused = childFolder.Item.Name == nextPathItemTitle;
662+
var imageSource = await NavigationHelpers.GetIconForPathAsync(childFolder.Path);
663663

664664
var flyoutItem = new MenuFlyoutItem
665665
{
666-
Icon = new FontIcon
667-
{
668-
Glyph = "\uED25",
669-
FontWeight = isPathItemFocused ? boldFontWeight : normalFontWeight
670-
},
666+
Icon = new ImageIcon() { Source = imageSource },
671667
Text = childFolder.Item.Name,
672668
FontSize = 12,
673-
FontWeight = isPathItemFocused ? boldFontWeight : normalFontWeight
674669
};
675670

676671
if (workingPath != childFolder.Path)

0 commit comments

Comments
 (0)