From 70b976e71cfbf35ba2f1429bb285ddd045b62988 Mon Sep 17 00:00:00 2001 From: chinboy Date: Tue, 25 Nov 2025 13:32:48 +0800 Subject: [PATCH] Refactor Avatar Icon --- src/AtomUI.Desktop.Controls/Avatar/Avatar.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AtomUI.Desktop.Controls/Avatar/Avatar.cs b/src/AtomUI.Desktop.Controls/Avatar/Avatar.cs index b81e620e4..0336169b0 100644 --- a/src/AtomUI.Desktop.Controls/Avatar/Avatar.cs +++ b/src/AtomUI.Desktop.Controls/Avatar/Avatar.cs @@ -43,8 +43,8 @@ public class Avatar : TemplatedControl, IControlSharedTokenResourcesHost, IMotio public static readonly StyledProperty GapProperty = AvaloniaProperty.Register(nameof(Gap), defaultValue: 4.0); - public static readonly StyledProperty IconProperty = - AvaloniaProperty.Register(nameof(Icon)); + public static readonly StyledProperty IconProperty = + AvaloniaProperty.Register(nameof(Icon)); public static readonly StyledProperty BitmapSrcProperty = AvaloniaProperty.Register(nameof(BitmapSrc)); @@ -74,7 +74,7 @@ public class Avatar : TemplatedControl, IControlSharedTokenResourcesHost, IMotio set => SetValue(GapProperty, value); } - public Icon? Icon + public PathIcon? Icon { get => GetValue(IconProperty); set => SetValue(IconProperty, value);