Skip to content

Commit b4c29bd

Browse files
committed
SVG Path icon for better overall quality
1 parent 47d5efb commit b4c29bd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
-141 Bytes
Loading

plugin_Kinect360/SdkInstaller.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
using Windows.Storage;
1313
using RestSharp;
1414
using Microsoft.UI.Xaml.Controls;
15+
using Microsoft.UI.Xaml.Markup;
16+
using Microsoft.UI.Xaml.Media;
1517

1618
namespace plugin_Kinect360;
1719

1820
internal class SetupData : ICoreSetupData
1921
{
20-
public object PluginIcon => new BitmapIcon
22+
public object PluginIcon => new PathIcon
2123
{
22-
UriSource = new Uri(Path.Join(Directory.GetParent(
23-
Assembly.GetExecutingAssembly().Location)!.FullName,
24-
"Assets", "Resources", "icon.png"))
24+
Data = (Geometry)XamlBindingHelper.ConvertValue(typeof(Geometry),
25+
"M55.75,3.68a2.27,2.27,0,0,0-2.42-2.4c-8.5.05-17,0-25.5,0H2.38c-.22,0-.44,0-.66,0A1.84,1.84,0,0,0,0,3.12c0,2.4,0,4.81,0,7.21a2.06,2.06,0,0,0,.44,1.12,1.9,1.9,0,0,0,1.66.67H23.76c1.48,0,1.46,0,1.47,1.46,0,.38-.09.54-.52.61-2.79.46-5.57,1-8.35,1.43-.35.06-.47.21-.45.56,0,.64,0,1.28,0,1.92,0,.88.35,1.22,1.25,1.23H38.45c.9,0,1.24-.34,1.25-1.23,0-.64,0-1.28,0-1.92,0-.35-.1-.5-.45-.56L31.68,14.3c-1.28-.22-1.26-.22-1.3-1.51,0-.53.12-.7.68-.69,7.46,0,14.92,0,22.37,0a2.07,2.07,0,0,0,2.3-2.3C55.73,7.77,55.67,5.72,55.75,3.68ZM18.77,9a2.3,2.3,0,1,1,2.3-2.27A2.31,2.31,0,0,1,18.77,9ZM29.66,9a2.3,2.3,0,1,1,2.28-2.3A2.32,2.32,0,0,1,29.66,9ZM37.4,9a2.26,2.26,0,0,1-2.32-2.3,2.25,2.25,0,0,1,2.27-2.29,2.32,2.32,0,0,1,2.34,2.31A2.29,2.29,0,0,1,37.4,9Z")
2526
};
2627

2728
public string GroupName => "kinect";

0 commit comments

Comments
 (0)