Refactor Notifications

This commit is contained in:
chinboy
2025-11-26 12:19:13 +08:00
parent 8666faa5b1
commit deb844bfbd
@@ -137,28 +137,28 @@
<Style Selector="^[NotificationType=Information]">
<Style Selector="^ /template/ atom|IconPresenter#PART_IconPresenter">
<Setter Property="NormalFilledBrush"
<Setter Property="Foreground"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorPrimary}}" />
</Style>
</Style>
<Style Selector="^[NotificationType=Error]">
<Style Selector="^ /template/ atom|IconPresenter#PART_IconPresenter">
<Setter Property="NormalFilledBrush"
<Setter Property="Foreground"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorError}}" />
</Style>
</Style>
<Style Selector="^[NotificationType=Success]">
<Style Selector="^ /template/ atom|IconPresenter#PART_IconPresenter">
<Setter Property="NormalFilledBrush"
<Setter Property="Foreground"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorSuccess}}" />
</Style>
</Style>
<Style Selector="^[NotificationType=Warning]">
<Style Selector="^ /template/ atom|IconPresenter#PART_IconPresenter">
<Setter Property="NormalFilledBrush"
<Setter Property="Foreground"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorWarning}}" />
</Style>
</Style>
@@ -182,10 +182,6 @@
</Style>
<Style Selector="^ /template/ atom|IconButton#PART_CloseButton">
<Setter Property="NormalIconBrush"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorIcon}}" />
<Setter Property="ActiveIconBrush"
Value="{DynamicResource {x:Static atom:SharedTokenKey.ColorIconHover}}" />
<Setter Property="Padding"
Value="{DynamicResource {x:Static atom:NotificationTokenKey.NotificationCloseButtonPadding}}" />
<Setter Property="CornerRadius"