Use ThemeResource for resolving AccentBrush
This commit is contained in:
+2
-5
@@ -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}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user