feat: using Padding instead of Gap in Avatar.

This commit is contained in:
Zhang Dian
2025-01-17 16:05:52 +08:00
parent 33bfd67833
commit a366ca6f0c
4 changed files with 8 additions and 43 deletions

View File

@@ -7,21 +7,12 @@ namespace Ursa.Controls;
public class Avatar : Button
{
public static readonly StyledProperty<double> GapProperty = AvaloniaProperty.Register<Avatar, double>(
nameof(Gap));
public static readonly StyledProperty<IImage?> SourceProperty = AvaloniaProperty.Register<Avatar, IImage?>(
nameof(Source));
public static readonly StyledProperty<object?> HoverMaskProperty = AvaloniaProperty.Register<Avatar, object?>(
nameof(HoverMask));
public double Gap
{
get => GetValue(GapProperty);
set => SetValue(GapProperty, value);
}
[ExcludeFromCodeCoverage]
public IImage? Source
{