From 7df431670c22fddeba331e7da05a10d1e351f057 Mon Sep 17 00:00:00 2001 From: sealoyal Date: Tue, 6 Aug 2024 13:42:08 +0800 Subject: [PATCH] feature: suki-ui reference namespace in .axaml file --- SukiUI.Demo/App.axaml | 4 +- .../ControlsLibrary/ButtonsView.axaml | 111 +++++++++--------- .../Features/ControlsLibrary/CardsView.axaml | 64 +++++----- .../ControlsLibrary/CollectionsView.axaml | 50 ++++---- .../ControlsLibrary/Colors/ColorsView.axaml | 22 ++-- .../ControlsLibrary/ContextMenusView.axaml | 23 ++-- .../Dialogs/DialogWindowDemo.axaml | 50 ++++---- .../ControlsLibrary/Dialogs/DialogsView.axaml | 42 +++---- .../Dialogs/VmDialogView.axaml | 6 +- .../DockControls/ErrorList.axaml | 14 +-- .../DockControls/propertiesview.axaml | 6 +- .../ControlsLibrary/ExpanderView.axaml | 26 ++-- .../Features/ControlsLibrary/IconsView.axaml | 32 +++-- .../ControlsLibrary/InfoBarView.axaml | 60 +++++----- .../Features/ControlsLibrary/MiscView.axaml | 83 +++++++------ .../ControlsLibrary/ProgressView.axaml | 110 ++++++++--------- .../ControlsLibrary/PropertyGridView.axaml | 53 ++++----- .../StackPage/RecursiveView.axaml | 10 +- .../StackPage/StackPageView.axaml | 16 +-- .../TabControl/TabControlView.axaml | 42 +++---- .../Features/ControlsLibrary/TextView.axaml | 23 ++-- .../Toasts/ToastWindowDemo.axaml | 50 ++++---- .../ControlsLibrary/Toasts/ToastsView.axaml | 74 ++++++------ .../ControlsLibrary/TogglesView.axaml | 50 ++++---- .../CustomTheme/CustomThemeDialogView.axaml | 6 +- .../Features/Dashboard/DashboardView.axaml | 11 +- .../Features/Effects/EffectsView.axaml | 16 +-- .../Features/Playground/PlaygroundView.axaml | 103 ++++++++-------- SukiUI.Demo/Features/Splash/SplashView.axaml | 14 +-- .../Features/Theming/ThemingView.axaml | 55 +++++---- .../Styles/CompletionWindowStyles.axaml | 6 +- SukiUI.Demo/Styles/GlassCardStyles.axaml | 4 +- SukiUI.Demo/Styles/WrapPanelStyles.axaml | 7 +- SukiUI.Demo/SukiUIDemoView.axaml | 5 +- SukiUI.Dock/DocumentControl.axaml | 6 +- SukiUI.Dock/ToolChromeControl.axaml | 2 +- SukiUI.Dock/ToolDockControl.axaml | 6 +- SukiUI/Properties/AssemblyInfo.cs | 9 ++ 38 files changed, 634 insertions(+), 637 deletions(-) create mode 100644 SukiUI/Properties/AssemblyInfo.cs diff --git a/SukiUI.Demo/App.axaml b/SukiUI.Demo/App.axaml index 7025c9f85..af28add8d 100644 --- a/SukiUI.Demo/App.axaml +++ b/SukiUI.Demo/App.axaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:common="clr-namespace:SukiUI.Demo.Common" - xmlns:sukiUi="clr-namespace:SukiUI;assembly=SukiUI" + xmlns:suki="https://github.com/kikipoulet/SukiUI" RequestedThemeVariant="Default"> @@ -22,7 +22,7 @@ - + diff --git a/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml b/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml index 7709b2ab0..62fcfe978 100644 --- a/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml +++ b/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml @@ -1,12 +1,11 @@ - - + + SukiUI has a handful of button styles, available in both the standard primary color, but also in the theme's accent color. @@ -40,95 +39,95 @@ - - + + - - + + --> - + - + - - + + diff --git a/SukiUI.Demo/Features/Splash/SplashView.axaml b/SukiUI.Demo/Features/Splash/SplashView.axaml index f815f9f06..66588e2ef 100644 --- a/SukiUI.Demo/Features/Splash/SplashView.axaml +++ b/SukiUI.Demo/Features/Splash/SplashView.axaml @@ -1,7 +1,7 @@ - - + + - - + + \ No newline at end of file diff --git a/SukiUI.Demo/Features/Theming/ThemingView.axaml b/SukiUI.Demo/Features/Theming/ThemingView.axaml index 90ba117c7..cbcff416f 100644 --- a/SukiUI.Demo/Features/Theming/ThemingView.axaml +++ b/SukiUI.Demo/Features/Theming/ThemingView.axaml @@ -1,23 +1,22 @@ - - - - - - - + + + + + + + @@ -60,11 +59,11 @@ - - + + - - + + @@ -74,7 +73,7 @@ - + - - + + - - + + - + - - + + - + - - + + - - - - + + + + \ No newline at end of file diff --git a/SukiUI.Demo/Styles/CompletionWindowStyles.axaml b/SukiUI.Demo/Styles/CompletionWindowStyles.axaml index 247747c6e..c99a39518 100644 --- a/SukiUI.Demo/Styles/CompletionWindowStyles.axaml +++ b/SukiUI.Demo/Styles/CompletionWindowStyles.axaml @@ -1,7 +1,7 @@  + xmlns:suki="https://github.com/kikipoulet/SukiUI" + xmlns:cc="clr-namespace:AvaloniaEdit.CodeCompletion;assembly=AvaloniaEdit"> @@ -29,7 +29,7 @@ ClipToBounds="{TemplateBinding ClipToBounds}" CornerRadius="{TemplateBinding CornerRadius}"> - + - diff --git a/SukiUI.Demo/Styles/WrapPanelStyles.axaml b/SukiUI.Demo/Styles/WrapPanelStyles.axaml index 3f0d22e46..5e5568744 100644 --- a/SukiUI.Demo/Styles/WrapPanelStyles.axaml +++ b/SukiUI.Demo/Styles/WrapPanelStyles.axaml @@ -1,12 +1,11 @@ + xmlns:suki="https://github.com/kikipoulet/SukiUI"> diff --git a/SukiUI.Demo/SukiUIDemoView.axaml b/SukiUI.Demo/SukiUIDemoView.axaml index dd3ca943d..5c744ea90 100644 --- a/SukiUI.Demo/SukiUIDemoView.axaml +++ b/SukiUI.Demo/SukiUIDemoView.axaml @@ -6,8 +6,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:demo="clr-namespace:SukiUI.Demo" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:models="clr-namespace:SukiUI.Models;assembly=SukiUI" - xmlns:suki="clr-namespace:SukiUI.Controls;assembly=SukiUI" + xmlns:suki="https://github.com/kikipoulet/SukiUI" Title="SukiUI - Demo Application" d:DesignHeight="450" d:DesignWidth="800" @@ -144,7 +143,7 @@ Header="Switch To..." ItemsSource="{Binding Themes}"> - + diff --git a/SukiUI.Dock/DocumentControl.axaml b/SukiUI.Dock/DocumentControl.axaml index 7918d7983..1b61518cf 100644 --- a/SukiUI.Dock/DocumentControl.axaml +++ b/SukiUI.Dock/DocumentControl.axaml @@ -1,6 +1,6 @@  @@ -18,7 +18,7 @@ - + - + diff --git a/SukiUI.Dock/ToolChromeControl.axaml b/SukiUI.Dock/ToolChromeControl.axaml index c3ec21696..91dbe3289 100644 --- a/SukiUI.Dock/ToolChromeControl.axaml +++ b/SukiUI.Dock/ToolChromeControl.axaml @@ -1,6 +1,6 @@  diff --git a/SukiUI.Dock/ToolDockControl.axaml b/SukiUI.Dock/ToolDockControl.axaml index 915fc35aa..1a9ce996e 100644 --- a/SukiUI.Dock/ToolDockControl.axaml +++ b/SukiUI.Dock/ToolDockControl.axaml @@ -1,6 +1,6 @@ @@ -17,7 +17,7 @@ CornerRadius="20" IsVisible="{TemplateBinding Background, Converter={x:Static converters:TransparentToTrueConverter.Instance}}" /> - + @@ -44,7 +44,7 @@ - + diff --git a/SukiUI/Properties/AssemblyInfo.cs b/SukiUI/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..24caaa998 --- /dev/null +++ b/SukiUI/Properties/AssemblyInfo.cs @@ -0,0 +1,9 @@ +using Avalonia.Metadata; + +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI")] +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI.Controls")] +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI.Converters")] +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI.Theme")] +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI.Models")] +[assembly: XmlnsDefinition("https://github.com/kikipoulet/SukiUI", "SukiUI.Content")] +[assembly: XmlnsPrefix("https://github.com/kikipoulet/SukiUI", "suki")]