From 88f6bb138b1a9a16bac668236c61a536fe0c7e31 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:25:37 +0800 Subject: [PATCH] feat: Notification size. --- .../Controls/Notification.axaml | 22 +++++++++++-------- src/Ursa.Themes.Semi/Controls/Toast.axaml | 3 +-- .../Themes/Shared/Notification.axaml | 3 +++ .../Themes/Shared/_index.axaml | 1 + .../Notification/WindowNotificationManager.cs | 2 ++ 5 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 src/Ursa.Themes.Semi/Themes/Shared/Notification.axaml diff --git a/src/Ursa.Themes.Semi/Controls/Notification.axaml b/src/Ursa.Themes.Semi/Controls/Notification.axaml index 8b139e7..deae03e 100644 --- a/src/Ursa.Themes.Semi/Controls/Notification.axaml +++ b/src/Ursa.Themes.Semi/Controls/Notification.axaml @@ -5,10 +5,17 @@ - + + Hello, Ursa! + + + + + + @@ -61,9 +68,7 @@ - - @@ -76,14 +81,13 @@ - + @@ -108,6 +111,7 @@ Foreground="{DynamicResource NotificationCardMessageForeground}" FontSize="{DynamicResource NotificationCardMessageFontSize}" FontWeight="{DynamicResource NotificationCardMessageFontWeight}" + IsVisible="{Binding Content, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" Text="{Binding Content}" TextWrapping="Wrap" /> @@ -124,13 +128,12 @@