diff --git a/src/Ursa.Themes.Semi/Controls/Badge.axaml b/src/Ursa.Themes.Semi/Controls/Badge.axaml index 7af3113..4402f05 100644 --- a/src/Ursa.Themes.Semi/Controls/Badge.axaml +++ b/src/Ursa.Themes.Semi/Controls/Badge.axaml @@ -9,24 +9,23 @@ - - - - - - - - - - - - + + + + + + + + + + + + - diff --git a/src/Ursa.Themes.Semi/Themes/Shared/Badge.axaml b/src/Ursa.Themes.Semi/Themes/Shared/Badge.axaml index 9ff0988..7c39786 100644 --- a/src/Ursa.Themes.Semi/Themes/Shared/Badge.axaml +++ b/src/Ursa.Themes.Semi/Themes/Shared/Badge.axaml @@ -8,7 +8,7 @@ 8 6,0 1 - 14 + 10 100 TopRight \ No newline at end of file diff --git a/src/Ursa/Controls/Badge.cs b/src/Ursa/Controls/Badge.cs index 3e24381..23124ed 100644 --- a/src/Ursa/Controls/Badge.cs +++ b/src/Ursa/Controls/Badge.cs @@ -50,6 +50,15 @@ public class Badge: HeaderedContentControl set => SetValue(OverflowCountProperty, value); } + public static readonly StyledProperty BadgeFontSizeProperty = AvaloniaProperty.Register( + nameof(BadgeFontSize)); + + public double BadgeFontSize + { + get => GetValue(BadgeFontSizeProperty); + set => SetValue(BadgeFontSizeProperty, value); + } + static Badge() { HeaderProperty.Changed.AddClassHandler((badge, args) => badge.UpdateBadgePosition());