79 lines
4.5 KiB
XML
79 lines
4.5 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:NotificationFlyout.Uwp.UI.Controls">
|
|
<ResourceDictionary.ThemeDictionaries>
|
|
<ResourceDictionary x:Key="Default">
|
|
<AcrylicBrush
|
|
x:Key="AcrylicBackgroundFillColorBrush"
|
|
BackgroundSource="HostBackdrop"
|
|
FallbackColor="#2C2C2C"
|
|
TintColor="#2C2C2C"
|
|
TintOpacity="0.8" />
|
|
<StaticResource x:Key="NotificationFlyoutPresenterBackgroundBrush" ResourceKey="AcrylicBackgroundFillColorBrush" />
|
|
</ResourceDictionary>
|
|
<ResourceDictionary x:Key="Light">
|
|
<AcrylicBrush
|
|
x:Key="AcrylicBackgroundFillColorBrush"
|
|
BackgroundSource="HostBackdrop"
|
|
FallbackColor="#F9F9F9"
|
|
TintColor="#FCFCFC"
|
|
TintOpacity="0.8" />
|
|
<StaticResource x:Key="NotificationFlyoutPresenterBackgroundBrush" ResourceKey="AcrylicBackgroundFillColorBrush" />
|
|
</ResourceDictionary>
|
|
<ResourceDictionary x:Key="HighContrast">
|
|
<SolidColorBrush x:Key="NotificationFlyoutPresenterBackgroundBrush" Color="Green" />
|
|
</ResourceDictionary>
|
|
</ResourceDictionary.ThemeDictionaries>
|
|
<AcrylicBrush
|
|
x:Key="NotificationFlyoutPresenterBackgroundAccentBrush"
|
|
BackgroundSource="HostBackdrop"
|
|
FallbackColor="{ThemeResource SystemAccentColorDark1}"
|
|
TintColor="{ThemeResource SystemAccentColorDark1}"
|
|
TintOpacity="0.8" />
|
|
<Style TargetType="controls:NotificationFlyoutContentPresenter">
|
|
<Setter Property="Background" Value="{ThemeResource NotificationFlyoutPresenterBackgroundBrush}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:NotificationFlyoutContentPresenter">
|
|
<Border
|
|
x:Name="Root"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BackgroundSizing="OuterBorderEdge"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
<ScrollViewer
|
|
x:Name="ScrollViewer"
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
|
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
|
ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}">
|
|
<ContentPresenter
|
|
Margin="{TemplateBinding Padding}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}" />
|
|
</ScrollViewer>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="ThemeStates">
|
|
<VisualState x:Name="DefaultTheme" />
|
|
<VisualState x:Name="ColorPrevalenceTheme">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.Background" Value="{ThemeResource NotificationFlyoutPresenterBackgroundAccentBrush}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|