绘制图标
This commit is contained in:
@@ -30,6 +30,7 @@ namespace Deedy.Activity
|
|||||||
public const string DropIcon_BeforeOrBehind = "DropIcon_BeforeOrBehind"; // 自身前后
|
public const string DropIcon_BeforeOrBehind = "DropIcon_BeforeOrBehind"; // 自身前后
|
||||||
public const string DropIcon_ReplaceOneself = "DropIcon_ReplaceOneself"; // 替换自身
|
public const string DropIcon_ReplaceOneself = "DropIcon_ReplaceOneself"; // 替换自身
|
||||||
public const string DropIcon_LinkWithOneself = "DropIcon_LinkWithOneself"; // 链接自身
|
public const string DropIcon_LinkWithOneself = "DropIcon_LinkWithOneself"; // 链接自身
|
||||||
|
public const string DropIcon_RejectDragDrop = "DropIcon_RejectDragDrop"; // 决绝拖放
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ComponentResourceKey? LookupResourceKey(string themeKey)
|
public static ComponentResourceKey? LookupResourceKey(string themeKey)
|
||||||
@@ -57,5 +58,6 @@ namespace Deedy.Activity
|
|||||||
public static ComponentResourceKey DropIcon_BeforeOrBehind = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_BeforeOrBehind);
|
public static ComponentResourceKey DropIcon_BeforeOrBehind = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_BeforeOrBehind);
|
||||||
public static ComponentResourceKey DropIcon_ReplaceOneself = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_ReplaceOneself);
|
public static ComponentResourceKey DropIcon_ReplaceOneself = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_ReplaceOneself);
|
||||||
public static ComponentResourceKey DropIcon_LinkWithOneself = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_LinkWithOneself);
|
public static ComponentResourceKey DropIcon_LinkWithOneself = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_LinkWithOneself);
|
||||||
|
public static ComponentResourceKey DropIcon_RejectDragDrop = new ComponentResourceKey(typeof(ThemeKeys), Keys.DropIcon_RejectDragDrop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,5 +28,6 @@ namespace Deedy.Activity
|
|||||||
public PathGeometry? DropIcon_BeforeOrBehind => this[ThemeKeys.DropIcon_BeforeOrBehind] as PathGeometry;
|
public PathGeometry? DropIcon_BeforeOrBehind => this[ThemeKeys.DropIcon_BeforeOrBehind] as PathGeometry;
|
||||||
public PathGeometry? DropIcon_ReplaceOneself => this[ThemeKeys.DropIcon_ReplaceOneself] as PathGeometry;
|
public PathGeometry? DropIcon_ReplaceOneself => this[ThemeKeys.DropIcon_ReplaceOneself] as PathGeometry;
|
||||||
public PathGeometry? DropIcon_LinkWithOneself => this[ThemeKeys.DropIcon_LinkWithOneself] as PathGeometry;
|
public PathGeometry? DropIcon_LinkWithOneself => this[ThemeKeys.DropIcon_LinkWithOneself] as PathGeometry;
|
||||||
|
public PathGeometry? DropIcon_RejectDragDrop => this[ThemeKeys.DropIcon_RejectDragDrop] as PathGeometry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,25 +25,49 @@
|
|||||||
|
|
||||||
<!--#region 工具按钮图标-->
|
<!--#region 工具按钮图标-->
|
||||||
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Delete}">
|
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Delete}">
|
||||||
<!--矢量图标定义-->
|
<DrawingImage.Drawing>
|
||||||
|
<GeometryDrawing Brush="Blue">
|
||||||
|
<GeometryDrawing.Geometry>
|
||||||
|
m 4.015 5.494 h -0.253 c -0.413 0 -0.747 -0.335 -0.747 -0.747 s 0.334 -0.747 0.747 -0.747 h 5.253 v -1 c 0 -0.535 0.474 -1 1 -1 h 4 c 0.526 0 1 0.465 1 1 v 1 h 5.254 c 0.412 0 0.746 0.335 0.746 0.747 s -0.334 0.747 -0.746 0.747 h -0.254 v 15.435 c 0 0.591 -0.448 1.071 -1 1.071 c -2.873 0 -11.127 0 -14 0 c -0.552 0 -1 -0.48 -1 -1.071 z m 14.5 0 h -13 v 15.006 h 13 z m -4.25 2.506 c -0.414 0 -0.75 0.336 -0.75 0.75 v 8.5 c 0 0.414 0.336 0.75 0.75 0.75 s 0.75 -0.336 0.75 -0.75 v -8.5 c 0 -0.414 -0.336 -0.75 -0.75 -0.75 z m -4.5 0 c -0.414 0 -0.75 0.336 -0.75 0.75 v 8.5 c 0 0.414 0.336 0.75 0.75 0.75 s 0.75 -0.336 0.75 -0.75 v -8.5 c 0 -0.414 -0.336 -0.75 -0.75 -0.75 z m 3.75 -4 v -0.5 h -3 v 0.5 z M 0 0 V 24 H 24 H 0 z
|
||||||
|
</GeometryDrawing.Geometry>
|
||||||
|
</GeometryDrawing>
|
||||||
|
</DrawingImage.Drawing>
|
||||||
</DrawingImage>
|
</DrawingImage>
|
||||||
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Close}">
|
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Close}">
|
||||||
<!--矢量图标定义-->
|
<DrawingImage.Drawing>
|
||||||
|
<GeometryDrawing Brush="Red">
|
||||||
|
<GeometryDrawing.Geometry>
|
||||||
|
m20 20h-15.25c-.414 0-.75.336-.75.75s.336.75.75.75h15.75c.53 0 1-.47 1-1v-15.75c0-.414-.336-.75-.75-.75s-.75.336-.75.75zm-1-17c0-.478-.379-1-1-1h-15c-.62 0-1 .519-1 1v15c0 .621.52 1 1 1h15c.478 0 1-.379 1-1zm-15.5.5h14v14h-14zm7 5.937 2.219-2.22c.146-.146.339-.219.531-.219.404 0 .75.325.75.75 0 .193-.073.384-.219.531l-2.22 2.22 2.222 2.222c.147.147.22.339.22.53 0 .427-.349.751-.75.751-.192 0-.384-.073-.53-.219l-2.223-2.223-2.223 2.223c-.146.146-.338.219-.53.219-.401 0-.75-.324-.75-.751 0-.191.073-.383.22-.53l2.222-2.222-2.22-2.22c-.146-.147-.219-.338-.219-.531 0-.425.346-.75.75-.75.192 0 .385.073.531.219z M 0 0 V 24 H 24 H 0 z
|
||||||
|
</GeometryDrawing.Geometry>
|
||||||
|
</GeometryDrawing>
|
||||||
|
</DrawingImage.Drawing>
|
||||||
</DrawingImage>
|
</DrawingImage>
|
||||||
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Edit}">
|
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Edit}">
|
||||||
<!--矢量图标定义-->
|
<DrawingImage.Drawing>
|
||||||
|
<GeometryDrawing Brush="GreenYellow">
|
||||||
|
<GeometryDrawing.Geometry>
|
||||||
|
M 9 19 H 5 V 17 H 9 V 19 Z M 12 15 L 15 18 L 11 19 L 12 15 Z M 24 9 L 16 17 L 13 14 L 21 6 Z M 18 18 V 22 H 2 V 2 H 10 C 16 2 12 8 12 8 S 14 6 16 8 L 19 5 C 18 0 12 0 10 0 H 0 V 24 H 20 V 16 L 18 18 Z
|
||||||
|
</GeometryDrawing.Geometry>
|
||||||
|
</GeometryDrawing>
|
||||||
|
</DrawingImage.Drawing>
|
||||||
</DrawingImage>
|
</DrawingImage>
|
||||||
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Save}">
|
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=ToolIcon_Save}">
|
||||||
<!--矢量图标定义-->
|
<DrawingImage.Drawing>
|
||||||
|
<GeometryDrawing Brush="Orange">
|
||||||
|
<GeometryDrawing.Geometry>
|
||||||
|
M 14 3 H 16.997 V 8 H 14 V 3 Z M 23 4 V 24 H 1 V 0 H 18.997 L 23 4 Z M 6 9 H 18 V 2 H 6 V 9 Z M 20 13 H 4 V 22 H 20 V 13 Z
|
||||||
|
</GeometryDrawing.Geometry>
|
||||||
|
</GeometryDrawing>
|
||||||
|
</DrawingImage.Drawing>
|
||||||
</DrawingImage>
|
</DrawingImage>
|
||||||
<!--#endregion-->
|
<!--#endregion-->
|
||||||
|
|
||||||
<!--#region 拖放操作图标-->
|
<!--#region 拖放操作图标-->
|
||||||
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_BringForward}">
|
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_BringForward}">
|
||||||
M0,0H24V4H0Z
|
M 12 0 L 6.5 5 L 11 3.5 V 10.5 H 13 V 3.5 L 17.5 5 Z M 0 10.5 L 12 15 L 24 10.5 L 16 7.5 A 1 1 0 0 0 16 9 L 20 10.5 L 12 13.5 L 4 10.5 L 8 9 A 1 1 0 0 0 8 7.5 Z M 11 16.5 V 24 H 13 V 16.5 Z
|
||||||
</PathGeometry>
|
</PathGeometry>
|
||||||
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_SendBackward}">
|
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_SendBackward}">
|
||||||
M0,0H24V4H0Z
|
M 11 0 V 10.5 H 13 V 0 Z M 0 10.5 L 12 15 L 24 10.5 L 16 7.5 A 1 1 0 0 0 16 9 L 20 10.5 L 12 13.5 L 4 10.5 L 8 9 A 1 1 0 0 0 8 7.5 z M 11 16.5 V 20.5 L 6.5 19 L 12 24 V 24 L 17.5 19 L 13 20.5 V 16.5 Z
|
||||||
</PathGeometry>
|
</PathGeometry>
|
||||||
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_InsideOneself}">
|
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_InsideOneself}">
|
||||||
M0,0H8L16,16L0,8ZM16,16L24,0V24H0Z
|
M0,0H8L16,16L0,8ZM16,16L24,0V24H0Z
|
||||||
@@ -55,7 +79,10 @@
|
|||||||
M0,24V0H24L6,6ZM6,6L12,24V12H24Z
|
M0,24V0H24L6,6ZM6,6L12,24V12H24Z
|
||||||
</PathGeometry>
|
</PathGeometry>
|
||||||
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_LinkWithOneself}">
|
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_LinkWithOneself}">
|
||||||
M0,0H24V4H0Z
|
M 21 9 C 19.344 9 18 10.343 18 12 S 19.344 15 21 15 S 24 13.657 24 12 S 22.656 9 21 9 Z M 6 18 C 4.343 18 3 19.343 3 21 S 4.343 24 6 24 C 7.656 24 9 22.657 9 21 S 7.656 18 6 18 Z M 9 3 C 9 4.657 7.656 6 6 6 S 3 4.657 3 3 S 4.344 0 6 0 S 9 1.343 9 3 Z M 10.588 1.021 L 11 1 C 15.281 1 18.981 3.45 20.8 7.021 C 20.083 7.05 19.41 7.231 18.802 7.532 C 17.247 4.829 14.336 3 11 3 C 11 2.297 10.851 1.628 10.588 1.021 Z M 20.8 16.979 C 18.981 20.55 15.281 23 11 23 L 10.588 22.979 C 10.851 22.372 11 21.703 11 21 C 14.336 21 17.247 19.171 18.802 16.468 C 19.41 16.77 20.083 16.951 20.8 16.979 Z M 1.89 18.165 C 0.697 16.406 0 14.285 0 12 S 0.697 7.594 1.89 5.835 C 2.282 6.401 2.791 6.874 3.377 7.238 C 2.51 8.621 2 10.25 2 12 S 2.51 15.379 3.377 16.762 C 2.791 17.126 2.281 17.599 1.89 18.165 Z
|
||||||
|
</PathGeometry>
|
||||||
|
<PathGeometry x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ThemeKeys},ResourceId=DropIcon_RejectDragDrop}">
|
||||||
|
M 12 0 A 1 1 0 0 0 12 24 A 1 1 0 0 0 12 0 V 3 A 1 1 0 0 1 12 21 A 1 1 0 0 1 12 3 Z M 6 10.5 V 13.5 H 18 V 10.5 Z
|
||||||
</PathGeometry>
|
</PathGeometry>
|
||||||
<!--#endregion-->
|
<!--#endregion-->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user