diff --git a/controlgallery/AtomUIGallery/ShowCases/Views/General/ButtonShowCase.axaml b/controlgallery/AtomUIGallery/ShowCases/Views/General/ButtonShowCase.axaml
index 40951a7fb..b04b1cedf 100644
--- a/controlgallery/AtomUIGallery/ShowCases/Views/General/ButtonShowCase.axaml
+++ b/controlgallery/AtomUIGallery/ShowCases/Views/General/ButtonShowCase.axaml
@@ -29,7 +29,7 @@
Primary
Default
-
+
Text
Link
@@ -51,8 +51,7 @@
+ Description="AtomUI supports three sizes of buttons: small, default and large.If a large or small button is desired, set the size property to either large or small respectively. Omit the size property for a button with the default size.">
Expand direction:
@@ -104,33 +103,41 @@ If a large or small button is desired, set the size property to either large or
Description="You can add an icon through the icon property and adjust the position of the icon using iconPosition.">
-
+
Search
-
-
+
+
Search
-
+
Search
-
+
Search
-
-
-
+
+
+
Search
-
+
Search
@@ -148,9 +155,11 @@ If a large or small button is desired, set the size property to either large or
Icon="{antdicons:AntDesignIconProvider Kind=SearchOutlined}">
Search
-
-
-
+
+
+
Search
@@ -165,7 +174,8 @@ If a large or small button is desired, set the size property to either large or
Loading
Loading
-
+
Click me!
@@ -254,16 +264,20 @@ If a large or small button is desired, set the size property to either large or
-
+
Primary
-
+
Default
-
+
Text
-
+
Link
-
+
Primary
-
+
Primary(disabled)
-
+
Default
-
+
Default(disabled)
-
+
Dashed
-
+
Dashed(disabled)
-
+
Text
-
+
Text(disabled)
-
+
Link
-
+
Link(disabled)
-
+
Danger Primary
-
+
Danger Primary(disabled)
-
+
Danger Default
-
+
Danger Default(disabled)
-
+
Danger Text
-
+
Danger Text(disabled)
-
+
Danger Link
-
+
Danger Link(disabled)
-
+
-
-
- Ghost
-
-
- Ghost(disabled)
-
-
-
-
+
+
+ Ghost
+
+
+ Ghost(disabled)
+
+
+
+
diff --git a/src/AtomUI.Controls.Shared/Icon/IconPresenter.cs b/src/AtomUI.Controls.Shared/Icon/IconPresenter.cs
index a9ceba012..1e7fb2605 100644
--- a/src/AtomUI.Controls.Shared/Icon/IconPresenter.cs
+++ b/src/AtomUI.Controls.Shared/Icon/IconPresenter.cs
@@ -47,9 +47,6 @@ public class IconPresenter : TemplatedControl, IMotionAwareControl
public static readonly StyledProperty SecondaryFilledBrushProperty =
IconControl.SecondaryFilledBrushProperty.AddOwner();
- public static readonly StyledProperty IconModeProperty =
- IconControl.IconModeProperty.AddOwner();
-
public static readonly StyledProperty IsMotionEnabledProperty =
MotionAwareControlProperty.IsMotionEnabledProperty.AddOwner();
@@ -108,12 +105,6 @@ public class IconPresenter : TemplatedControl, IMotionAwareControl
set => SetValue(SecondaryFilledBrushProperty, value);
}
- public IconMode IconMode
- {
- get => GetValue(IconModeProperty);
- set => SetValue(IconModeProperty, value);
- }
-
public bool IsMotionEnabled
{
get => GetValue(IsMotionEnabledProperty);
diff --git a/src/AtomUI.Controls.Shared/Icon/Themes/IconPresenterTheme.axaml b/src/AtomUI.Controls.Shared/Icon/Themes/IconPresenterTheme.axaml
index f58698a0e..069910a4b 100644
--- a/src/AtomUI.Controls.Shared/Icon/Themes/IconPresenterTheme.axaml
+++ b/src/AtomUI.Controls.Shared/Icon/Themes/IconPresenterTheme.axaml
@@ -11,9 +11,5 @@
-
-
\ No newline at end of file
diff --git a/src/AtomUI.Controls.Shared/Icon/Themes/IconTheme.axaml b/src/AtomUI.Controls.Shared/Icon/Themes/IconTheme.axaml
index 338a44d1f..b1a63f9b5 100644
--- a/src/AtomUI.Controls.Shared/Icon/Themes/IconTheme.axaml
+++ b/src/AtomUI.Controls.Shared/Icon/Themes/IconTheme.axaml
@@ -22,8 +22,5 @@
-
\ No newline at end of file
diff --git a/src/AtomUI.Core/Controls/Icon/Icon.cs b/src/AtomUI.Core/Controls/Icon/Icon.cs
index 91bda6645..53784c6d9 100644
--- a/src/AtomUI.Core/Controls/Icon/Icon.cs
+++ b/src/AtomUI.Core/Controls/Icon/Icon.cs
@@ -58,9 +58,6 @@ public class Icon : PathIcon, ICustomHitTest, IMotionAwareControl
AvaloniaProperty.Register(
nameof(FillAnimationDuration), TimeSpan.FromMilliseconds(200));
- public static readonly StyledProperty IconModeProperty =
- AvaloniaProperty.Register(nameof(IconMode));
-
public static readonly StyledProperty IsMotionEnabledProperty =
MotionAwareControlProperty.IsMotionEnabledProperty.AddOwner();
@@ -117,16 +114,7 @@ public class Icon : PathIcon, ICustomHitTest, IMotionAwareControl
get => GetValue(FillAnimationDurationProperty);
set => SetValue(FillAnimationDurationProperty, value);
}
-
- ///
- /// Icon 的模式,只对 Outlined 和 Filled 类型有效
- ///
- public IconMode IconMode
- {
- get => GetValue(IconModeProperty);
- set => SetValue(IconModeProperty, value);
- }
-
+
public IconThemeType ThemeType => IconInfo?.ThemeType ?? IconThemeType.Filled;
public IconAnimation LoadingAnimation
diff --git a/src/AtomUI.Desktop.Controls/Buttons/IconButton.cs b/src/AtomUI.Desktop.Controls/Buttons/IconButton.cs
index e3c99c661..aadd293c0 100644
--- a/src/AtomUI.Desktop.Controls/Buttons/IconButton.cs
+++ b/src/AtomUI.Desktop.Controls/Buttons/IconButton.cs
@@ -57,9 +57,6 @@ public class IconButton : AvaloniaButton,
public static readonly StyledProperty IconHeightProperty =
AvaloniaProperty.Register(nameof(IconHeight));
-
- public static readonly StyledProperty IconModeProperty =
- IconControl.IconModeProperty.AddOwner();
public static readonly StyledProperty IsEnableHoverEffectProperty =
AvaloniaProperty.Register(nameof(IsEnableHoverEffect));
@@ -96,12 +93,6 @@ public class IconButton : AvaloniaButton,
get => GetValue(IconHeightProperty);
set => SetValue(IconHeightProperty, value);
}
-
- public IconMode IconMode
- {
- get => GetValue(IconModeProperty);
- set => SetValue(IconModeProperty, value);
- }
public bool IsEnableHoverEffect
{
diff --git a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/BaseButtonTheme.axaml b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/BaseButtonTheme.axaml
index 72957a0c6..4874d342d 100644
--- a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/BaseButtonTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/BaseButtonTheme.axaml
@@ -138,6 +138,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/LinkButtonTheme.axaml b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/LinkButtonTheme.axaml
index 2f2850f4e..e4d42841c 100644
--- a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/LinkButtonTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/LinkButtonTheme.axaml
@@ -72,6 +72,15 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/PrimaryButtonTheme.axaml b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/PrimaryButtonTheme.axaml
index d0269009e..b7e30ca7a 100644
--- a/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/PrimaryButtonTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Buttons/Themes/Button/PrimaryButtonTheme.axaml
@@ -104,6 +104,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/AtomUI.Desktop.Controls/Buttons/Themes/HyperLinkButtonTheme.axaml b/src/AtomUI.Desktop.Controls/Buttons/Themes/HyperLinkButtonTheme.axaml
index 540f59bc2..a55ded66e 100644
--- a/src/AtomUI.Desktop.Controls/Buttons/Themes/HyperLinkButtonTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Buttons/Themes/HyperLinkButtonTheme.axaml
@@ -94,6 +94,15 @@
+
+
+
+
+
+
+
+
diff --git a/src/AtomUI.Desktop.Controls/Input/Themes/SearchButtonTheme.axaml b/src/AtomUI.Desktop.Controls/Input/Themes/SearchButtonTheme.axaml
index aabeebded..01eca4091 100644
--- a/src/AtomUI.Desktop.Controls/Input/Themes/SearchButtonTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Input/Themes/SearchButtonTheme.axaml
@@ -75,6 +75,15 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/AtomUI.Desktop.Controls/Menu/Themes/MenuItemTheme.axaml b/src/AtomUI.Desktop.Controls/Menu/Themes/MenuItemTheme.axaml
index 59f7b7ae5..869e6d2ef 100644
--- a/src/AtomUI.Desktop.Controls/Menu/Themes/MenuItemTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/Menu/Themes/MenuItemTheme.axaml
@@ -195,10 +195,6 @@
\ No newline at end of file
diff --git a/src/AtomUI.Desktop.Controls/NavMenu/Themes/BaseNavMenuItemHeaderTheme.axaml b/src/AtomUI.Desktop.Controls/NavMenu/Themes/BaseNavMenuItemHeaderTheme.axaml
index 2f774bfa5..7f1dbe0a3 100644
--- a/src/AtomUI.Desktop.Controls/NavMenu/Themes/BaseNavMenuItemHeaderTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/NavMenu/Themes/BaseNavMenuItemHeaderTheme.axaml
@@ -113,16 +113,6 @@
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
\ No newline at end of file
diff --git a/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.axaml b/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.axaml
index 63bc36ff4..9de9b82c0 100644
--- a/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.axaml
+++ b/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.axaml
@@ -17,8 +17,7 @@
PrimaryFilledBrush="{TemplateBinding PrimaryFilledBrush}"
SecondaryFilledBrush="{TemplateBinding SecondaryFilledBrush}"
Width="{TemplateBinding IconWidth}"
- Height="{TemplateBinding IconHeight}"
- IconMode="{TemplateBinding IconMode}" />
+ Height="{TemplateBinding IconHeight}"/>
diff --git a/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.cs b/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.cs
index b3f86af66..450247349 100644
--- a/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.cs
+++ b/src/AtomUI.Desktop.Controls/Primitives/SizeTypeAwareIconPresenter/SizeTypeAwareIconPresenter.cs
@@ -49,9 +49,6 @@ internal class SizeTypeAwareIconPresenter : TemplatedControl, ISizeTypeAware
public static readonly StyledProperty IconHeightProperty =
AvaloniaProperty.Register(nameof(IconHeight), double.NaN);
- public static readonly StyledProperty IconModeProperty =
- IconControl.IconModeProperty.AddOwner();
-
public SizeType SizeType
{
get => GetValue(SizeTypeProperty);
@@ -124,12 +121,6 @@ internal class SizeTypeAwareIconPresenter : TemplatedControl, ISizeTypeAware
get => GetValue(SecondaryFilledBrushProperty);
set => SetValue(SecondaryFilledBrushProperty, value);
}
-
- public IconMode IconMode
- {
- get => GetValue(IconModeProperty);
- set => SetValue(IconModeProperty, value);
- }
#endregion
diff --git a/src/AtomUI.Desktop.Controls/ProgressBar/Themes/AbstractProgressBarTheme.axaml b/src/AtomUI.Desktop.Controls/ProgressBar/Themes/AbstractProgressBarTheme.axaml
index 73d96787b..de25bb5ce 100644
--- a/src/AtomUI.Desktop.Controls/ProgressBar/Themes/AbstractProgressBarTheme.axaml
+++ b/src/AtomUI.Desktop.Controls/ProgressBar/Themes/AbstractProgressBarTheme.axaml
@@ -118,10 +118,6 @@
-
-
\ No newline at end of file