From 4e08c2a38dae07f8b88f886c3d02ac09c639f594 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Fri, 28 Jun 2024 16:12:30 +0800
Subject: [PATCH] feat: remove unimplemented features.
---
demo/Ursa.Demo/Pages/AvatarDemo.axaml | 10 ---
src/Ursa.Themes.Semi/Controls/Avatar.axaml | 14 +----
src/Ursa/Controls/Avatar/Avatar.cs | 25 --------
src/Ursa/Controls/Avatar/AvatarGroup.cs | 42 -------------
src/Ursa/Controls/Avatar/AvatarGroupPanel.cs | 64 --------------------
5 files changed, 1 insertion(+), 154 deletions(-)
delete mode 100644 src/Ursa/Controls/Avatar/AvatarGroup.cs
delete mode 100644 src/Ursa/Controls/Avatar/AvatarGroupPanel.cs
diff --git a/demo/Ursa.Demo/Pages/AvatarDemo.axaml b/demo/Ursa.Demo/Pages/AvatarDemo.axaml
index 43b2a5f..9f5ba46 100644
--- a/demo/Ursa.Demo/Pages/AvatarDemo.axaml
+++ b/demo/Ursa.Demo/Pages/AvatarDemo.axaml
@@ -73,15 +73,5 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Ursa.Themes.Semi/Controls/Avatar.axaml b/src/Ursa.Themes.Semi/Controls/Avatar.axaml
index 2651563..10607dc 100644
--- a/src/Ursa.Themes.Semi/Controls/Avatar.axaml
+++ b/src/Ursa.Themes.Semi/Controls/Avatar.axaml
@@ -33,17 +33,13 @@
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center" />
-
-
-
-
@@ -141,12 +137,4 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Ursa/Controls/Avatar/Avatar.cs b/src/Ursa/Controls/Avatar/Avatar.cs
index d198aa1..a3d134c 100644
--- a/src/Ursa/Controls/Avatar/Avatar.cs
+++ b/src/Ursa/Controls/Avatar/Avatar.cs
@@ -1,42 +1,17 @@
using Avalonia;
using Avalonia.Controls;
-using Avalonia.Controls.Metadata;
-using Avalonia.Controls.Presenters;
using Avalonia.Media;
namespace Ursa.Controls;
-[TemplatePart(PART_HoverMask, typeof(ContentPresenter))]
public class Avatar : Button
{
- public const string PART_TopPresenter = "PART_TopPresenter";
- public const string PART_BottomPresenter = "PART_BottomPresenter";
- public const string PART_HoverMask = "PART_HoverMask";
-
- public static readonly StyledProperty ContentMotionProperty = AvaloniaProperty.Register(
- nameof(ContentMotion));
-
- public static readonly StyledProperty GapProperty = AvaloniaProperty.Register(
- nameof(Gap));
-
public static readonly StyledProperty SourceProperty = AvaloniaProperty.Register(
nameof(Source));
public static readonly StyledProperty