Use ThemeResource for resolving AccentBrush

This commit is contained in:
Daniel Clark
2021-02-14 16:04:28 +00:00
parent 2ace378529
commit 9869470c24
@@ -21,15 +21,12 @@
TintOpacity="0.8" /> TintOpacity="0.8" />
<StaticResource x:Key="NotificationFlyoutPresenterBackgroundBrush" ResourceKey="AcrylicBackgroundFillColorBrush" /> <StaticResource x:Key="NotificationFlyoutPresenterBackgroundBrush" ResourceKey="AcrylicBackgroundFillColorBrush" />
</ResourceDictionary> </ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<SolidColorBrush x:Key="NotificationFlyoutPresenterBackgroundBrush" Color="Green" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries> </ResourceDictionary.ThemeDictionaries>
<AcrylicBrush <AcrylicBrush
x:Key="NotificationFlyoutPresenterBackgroundAccentBrush" x:Key="NotificationFlyoutPresenterBackgroundAccentBrush"
BackgroundSource="HostBackdrop" BackgroundSource="HostBackdrop"
FallbackColor="{StaticResource SystemAccentColorDark1}" FallbackColor="{ThemeResource SystemAccentColorDark1}"
TintColor="{StaticResource SystemAccentColorDark1}" TintColor="{ThemeResource SystemAccentColorDark1}"
TintOpacity="0.8" /> TintOpacity="0.8" />
<Style TargetType="controls:NotificationFlyoutPresenter"> <Style TargetType="controls:NotificationFlyoutPresenter">
<Setter Property="Background" Value="{ThemeResource NotificationFlyoutPresenterBackgroundBrush}" /> <Setter Property="Background" Value="{ThemeResource NotificationFlyoutPresenterBackgroundBrush}" />