From fa37a0763ac25d798de2349a09b5b07a400f3f12 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Wed, 8 Jan 2025 21:42:20 +0800 Subject: [PATCH] feat: unified OverlayCloseButton. --- src/Ursa.Themes.Semi/Compatibles/Theme.axaml | 4 ++ src/Ursa.Themes.Semi/Compatibles/_index.axaml | 1 + src/Ursa.Themes.Semi/Controls/Banner.axaml | 2 +- .../Controls/DialogShared.axaml | 70 ++++++++----------- .../Controls/Notification.axaml | 30 +------- src/Ursa.Themes.Semi/Controls/Toast.axaml | 29 +------- 6 files changed, 36 insertions(+), 100 deletions(-) create mode 100644 src/Ursa.Themes.Semi/Compatibles/Theme.axaml diff --git a/src/Ursa.Themes.Semi/Compatibles/Theme.axaml b/src/Ursa.Themes.Semi/Compatibles/Theme.axaml new file mode 100644 index 0000000..15b652a --- /dev/null +++ b/src/Ursa.Themes.Semi/Compatibles/Theme.axaml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/Ursa.Themes.Semi/Compatibles/_index.axaml b/src/Ursa.Themes.Semi/Compatibles/_index.axaml index 75c1bf0..832f0b9 100644 --- a/src/Ursa.Themes.Semi/Compatibles/_index.axaml +++ b/src/Ursa.Themes.Semi/Compatibles/_index.axaml @@ -1,5 +1,6 @@  + \ No newline at end of file diff --git a/src/Ursa.Themes.Semi/Controls/Banner.axaml b/src/Ursa.Themes.Semi/Controls/Banner.axaml index 4050b03..6914411 100644 --- a/src/Ursa.Themes.Semi/Controls/Banner.axaml +++ b/src/Ursa.Themes.Semi/Controls/Banner.axaml @@ -59,7 +59,7 @@ Margin="{DynamicResource BannerCloseButtonMargin}" HorizontalAlignment="Right" VerticalAlignment="Top" - Theme="{DynamicResource NotificationCloseButton}" + Theme="{DynamicResource OverlayCloseButton}" IsVisible="{TemplateBinding CanClose}" /> diff --git a/src/Ursa.Themes.Semi/Controls/DialogShared.axaml b/src/Ursa.Themes.Semi/Controls/DialogShared.axaml index cc84e71..4ddc3a6 100644 --- a/src/Ursa.Themes.Semi/Controls/DialogShared.axaml +++ b/src/Ursa.Themes.Semi/Controls/DialogShared.axaml @@ -1,28 +1,44 @@  - - + + +