diff --git a/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml b/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml index cd5718f..5f56b87 100644 --- a/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml @@ -2,7 +2,7 @@ xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:u="https://irihi.tech/ursa" - xmlns:helpers="clr-namespace:Irihi.Avalonia.Shared.Helpers;assembly=Irihi.Avalonia.Shared"> + xmlns:iri="https://irihi.tech/shared"> @@ -14,7 +14,7 @@ Name="PART_TextBox" MinHeight="{TemplateBinding MinHeight}" VerticalAlignment="Stretch" - helpers:ClassHelper.ClassSource="{TemplateBinding}" + iri:ClassHelper.ClassSource="{TemplateBinding}" DataValidationErrors.Errors="{TemplateBinding (DataValidationErrors.Errors)}" InnerLeftContent="{TemplateBinding InnerLeftContent}" InnerRightContent="{TemplateBinding InnerRightContent}" diff --git a/src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml b/src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml index b8196fd..c016ed1 100644 --- a/src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml @@ -1,8 +1,8 @@ @@ -73,7 +73,7 @@ Theme="{DynamicResource InnerIconButton}" /> + xmlns:u="https://irihi.tech/ursa" + xmlns:iri="https://irihi.tech/shared"> @@ -230,24 +230,24 @@ @@ -259,16 +259,16 @@ @@ -624,16 +624,16 @@ diff --git a/src/Ursa.Themes.Semi/Controls/Drawer.axaml b/src/Ursa.Themes.Semi/Controls/Drawer.axaml index c058303..f85aebf 100644 --- a/src/Ursa.Themes.Semi/Controls/Drawer.axaml +++ b/src/Ursa.Themes.Semi/Controls/Drawer.axaml @@ -2,8 +2,8 @@ xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:Ursa.Themes.Semi.Converters" - xmlns:helpers="clr-namespace:Irihi.Avalonia.Shared.Helpers;assembly=Irihi.Avalonia.Shared" - xmlns:u="https://irihi.tech/ursa"> + xmlns:u="https://irihi.tech/ursa" + xmlns:iri="https://irihi.tech/shared"> @@ -181,24 +181,24 @@ diff --git a/src/Ursa.Themes.Semi/Controls/DualBadge.axaml b/src/Ursa.Themes.Semi/Controls/DualBadge.axaml index 2e2a3fb..d438616 100644 --- a/src/Ursa.Themes.Semi/Controls/DualBadge.axaml +++ b/src/Ursa.Themes.Semi/Controls/DualBadge.axaml @@ -2,7 +2,7 @@ xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:u="https://irihi.tech/ursa" - xmlns:converters="clr-namespace:Ursa.Converters;assembly=Ursa"> + xmlns:iri="https://irihi.tech/shared"> @@ -33,7 +33,7 @@ Height="{DynamicResource DualBadgeIconHeight}" IsVisible="{TemplateBinding Icon,Converter={x:Static ObjectConverters.IsNotNull}}" Foreground="{TemplateBinding IconForeground}" - Margin="{TemplateBinding Padding, Converter={x:Static converters:ThicknessExcludeConverter.Right}}" + Margin="{TemplateBinding Padding, Converter={iri:ThicknessMixerConverter 'Vertical,Left'}}" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" /> + xmlns:iri="https://irihi.tech/shared"> + xmlns:u="https://irihi.tech/ursa" + xmlns:iri="https://irihi.tech/shared"> @@ -28,7 +28,7 @@ + xmlns:iri="https://irihi.tech/shared"> @@ -282,24 +282,24 @@ diff --git a/src/Ursa.Themes.Semi/Controls/PopConfirm.axaml b/src/Ursa.Themes.Semi/Controls/PopConfirm.axaml index 849f658..fc86c79 100644 --- a/src/Ursa.Themes.Semi/Controls/PopConfirm.axaml +++ b/src/Ursa.Themes.Semi/Controls/PopConfirm.axaml @@ -1,7 +1,7 @@ + xmlns:iri="https://irihi.tech/shared"> @@ -99,11 +99,11 @@ @@ -17,7 +17,7 @@ diff --git a/src/Ursa/Converters/CornerRadiusConverter.cs b/src/Ursa/Converters/CornerRadiusConverter.cs index 759a1c7..7a1fda9 100644 --- a/src/Ursa/Converters/CornerRadiusConverter.cs +++ b/src/Ursa/Converters/CornerRadiusConverter.cs @@ -4,6 +4,7 @@ using Avalonia.Data.Converters; namespace Ursa.Converters; +[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")] [Flags] public enum CornerRadiusPosition { @@ -17,6 +18,7 @@ public enum CornerRadiusPosition Bottom = 12, } +[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")] public class CornerRadiusIncludeConverter(CornerRadiusPosition position) : IValueConverter { public static CornerRadiusIncludeConverter TopLeft { get; } = new( CornerRadiusPosition.TopLeft ); @@ -47,6 +49,7 @@ public class CornerRadiusIncludeConverter(CornerRadiusPosition position) : IValu } } +[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")] public class CornerRadiusExcludeConverter : IValueConverter { public static CornerRadiusExcludeConverter TopLeft { get; } = new( CornerRadiusPosition.TopLeft ); diff --git a/src/Ursa/Converters/ThicknessConverter.cs b/src/Ursa/Converters/ThicknessConverter.cs index 17616b0..4cce92c 100644 --- a/src/Ursa/Converters/ThicknessConverter.cs +++ b/src/Ursa/Converters/ThicknessConverter.cs @@ -4,6 +4,7 @@ using Avalonia.Data.Converters; namespace Ursa.Converters; +[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")] [Flags] public enum ThicknessPosition { @@ -17,6 +18,7 @@ public enum ThicknessPosition BottomRight = 12, } +[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")] public class ThicknessExcludeConverter(ThicknessPosition position) : IValueConverter { public static ThicknessExcludeConverter Left { get; } = new( ThicknessPosition.Left ); @@ -48,6 +50,7 @@ public class ThicknessExcludeConverter(ThicknessPosition position) : IValueConve } } +[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")] public class ThicknessIncludeConverter(ThicknessPosition position) : IValueConverter { public static ThicknessIncludeConverter Left { get; } = new( ThicknessPosition.Left ); diff --git a/src/Ursa/Ursa.csproj b/src/Ursa/Ursa.csproj index 1cc157a..723b07e 100644 --- a/src/Ursa/Ursa.csproj +++ b/src/Ursa/Ursa.csproj @@ -15,8 +15,8 @@ - - + +