Skip to content

Commit 66aa14b

Browse files
authored
Code Quality: Use path icon for Tags Menu (#12917)
1 parent 605877f commit 66aa14b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Files.App/UserControls/Menus/FileTagsContextMenu.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
using System.Collections.Generic;
1414
using System.Linq;
1515
using static Files.App.Helpers.MenuFlyoutHelper;
16+
using Microsoft.UI.Xaml;
17+
using Microsoft.UI.Xaml.Markup;
1618

1719
namespace Files.App.UserControls.Menus
1820
{
@@ -33,9 +35,9 @@ public FileTagsContextMenu(IEnumerable<ListedItem> selectedItems)
3335
Text = tag.Name,
3436
Tag = tag
3537
};
36-
tagItem.Icon = new FontIcon()
38+
tagItem.Icon = new PathIcon()
3739
{
38-
Glyph = "\uE8EC",
40+
Data = (Geometry)XamlBindingHelper.ConvertValue(typeof(Geometry), (string)Application.Current.Resources["ColorIconFilledTag"]),
3941
Foreground = new SolidColorBrush(ColorHelpers.FromHex(tag.Color))
4042
};
4143
tagItem.Click += TagItem_Click;

0 commit comments

Comments
 (0)