Skip to content

Commit

Permalink
Merge pull request #418 from corvinsz/fix417WindowNotificationManager2
Browse files Browse the repository at this point in the history
fix 417 - NotificationCard Background
  • Loading branch information
SKProCH authored Nov 28, 2024
2 parents 2ca03e7 + c5fa9d4 commit d5fc90f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Material.Styles/Resources/Themes/NotificationCard.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Setter Property="Width" Value="350" />
<Setter Property="FontSize" Value="14" />
<Setter Property="RenderTransformOrigin" Value="50%,75%" />
<Setter Property="Background" Value="{DynamicResource MaterialPrimaryMidBrush}" />
<Setter Property="Template">
<ControlTemplate>
<LayoutTransformControl Name="PART_LayoutTransformControl" UseRenderTransform="True">
Expand Down Expand Up @@ -73,6 +74,26 @@
</KeyFrame>
</Animation>
</ControlTheme.Animations>

<!-- Colour variants -->
<Style Selector="^.light">
<Setter Property="Background" Value="{DynamicResource MaterialPrimaryLightBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource MaterialPrimaryLightBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialPrimaryLightForegroundBrush}" />
</Style>

<Style Selector="^.dark">
<Setter Property="Background" Value="{DynamicResource MaterialPrimaryDarkBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource MaterialPrimaryDarkBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialPrimaryForegroundBrush}" />
</Style>

<Style Selector="^.accent">
<Setter Property="Background" Value="{DynamicResource MaterialSecondaryMidBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource MaterialSecondaryMidBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialSecondaryMidForegroundBrush}" />
</Style>

</ControlTheme>

<ControlTheme x:Key="{x:Type NotificationCard}" TargetType="NotificationCard"
Expand Down

0 comments on commit d5fc90f

Please sign in to comment.