Skip to content

Commit c4c2193

Browse files
committed
SVG Path icon for better overall quality
1 parent bc7ea0b commit c4c2193

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

plugin_KinectOne/RuntimeInstaller.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
using Amethyst.Plugins.Contract;
1212
using Microsoft.UI.Xaml.Controls;
1313
using RestSharp;
14+
using Microsoft.UI.Xaml.Markup;
15+
using Microsoft.UI.Xaml.Media;
1416

1517
namespace plugin_KinectOne;
1618

1719
internal class SetupData : ICoreSetupData
1820
{
19-
public object PluginIcon => new BitmapIcon
21+
public object PluginIcon => new PathIcon
2022
{
21-
UriSource = new Uri(Path.Join(Directory.GetParent(
22-
Assembly.GetExecutingAssembly().Location)!.FullName,
23-
"Assets", "Resources", "icon.png"))
23+
Data = (Geometry)XamlBindingHelper.ConvertValue(typeof(Geometry),
24+
"M45.26,18.3V15.93H69.51V1.1H0V16H24.25v2.37H0v5.25H69.51V18.3ZM9.36,13.19A4.63,4.63,0,0,1,4.65,8.45a4.61,4.61,0,0,1,4.6-4.67,4.71,4.71,0,1,1,.11,9.41Z")
2425
};
2526

2627
public string GroupName => "kinect";

0 commit comments

Comments
 (0)