Skip to content

Commit

Permalink
Merge pull request #107 from enisn/1.1-update-icons
Browse files Browse the repository at this point in the history
Make all icons centered
  • Loading branch information
enisn authored Nov 19, 2022
2 parents 1229b72 + 096988d commit 0e7bcb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/UraniumUI.Material/Controls/TreeViewNodeHolderView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void InitializeArrowButton()

iconArrow.Content = new Path
{
Data = UraniumShapes.ArrowLeft,
Data = UraniumShapes.ArrowRight,
Fill = TreeView.ArrowColor,
};

Expand Down
8 changes: 4 additions & 4 deletions src/UraniumUI/Pages/UraniumShapes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
namespace UraniumUI.Pages;
public static class UraniumShapes
{
public static Geometry ArrowLeft = GeometryConverter.FromPath(Paths.ArrowLeft);
public static Geometry ArrowRight = GeometryConverter.FromPath(Paths.ArrowRight);
public static Geometry ExclamationCircle = GeometryConverter.FromPath(Paths.ExclamationCircle);
public static Geometry X = GeometryConverter.FromPath(Paths.X);

public static class Paths
{
public const string ArrowLeft = "M9.46967 5.46967C9.76256 5.17678 10.2374 5.17678 10.5303 5.46967L16.5303 11.4697C16.8232 11.7626 16.8232 12.2374 16.5303 12.5303L10.5303 18.5303C10.2374 18.8232 9.76256 18.8232 9.46967 18.5303C9.17678 18.2374 9.17678 17.7626 9.46967 17.4697L14.9393 12L9.46967 6.53033C9.17678 6.23744 9.17678 5.76256 9.46967 5.46967Z";
public const string ExclamationCircle = "M 2.7835 16.2165 A 9.5 9.5 90 1 1 16.2165 2.7835 A 9.5 9.5 90 0 1 2.7835 16.2165 z M 8.55 4.75 v 5.7 h 1.9 V 4.75 H 8.55 z m 0 7.6 v 1.9 h 1.9 v -1.9 H 8.55 z";
public const string X = "M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z";
public const string ArrowRight = "M 0.4697 0.4697 C 0.7626 0.1768 1.2374 0.1768 1.5303 0.4697 L 7.5303 6.4697 C 7.8232 6.7626 7.8232 7.2374 7.5303 7.5303 L 1.5303 13.5303 C 1.2374 13.8232 0.7626 13.8232 0.4697 13.5303 C 0.1768 13.2374 0.1768 12.7626 0.4697 12.4697 L 5.9393 7 L 0.4697 1.5303 C 0.1768 1.2374 0.1768 0.7626 0.4697 0.4697 Z";
public const string ExclamationCircle = "M 2.9835 16.4165 A 9.5 9.5 90 1 1 16.4165 2.9835 A 9.5 9.5 90 0 1 2.9835 16.4165 z M 8.75 4.95 v 5.7 h 1.9 V 4.95 H 8.75 z m 0 7.6 v 1.9 h 1.9 v -1.9 H 8.75 z";
public const string X = "M 11.705 1.705 L 10.295 0.295 L 6 4.59 L 1.705 0.295 L 0.295 1.705 L 4.59 6 L 0.295 10.295 L 1.705 11.705 L 6 7.41 L 10.295 11.705 L 11.705 10.295 L 7.41 6 L 11.705 1.705 Z";
}
}

0 comments on commit 0e7bcb6

Please sign in to comment.