61 lines
3.7 KiB
XML
61 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:Hyperbar.Windows.Controls">
|
|
<ResourceDictionary.ThemeDictionaries>
|
|
<ResourceDictionary x:Key="Default">
|
|
<StaticResource x:Key="DesktopBarPresenterBackground" ResourceKey="AcrylicInAppFillColorDefaultBrush" />
|
|
<StaticResource x:Key="DesktopBarPresenterForeground" ResourceKey="TextFillColorPrimaryBrush" />
|
|
<StaticResource x:Key="DesktopBarPresenterBorderBrush" ResourceKey="ControlStrokeColorDefaultBrush" />
|
|
</ResourceDictionary>
|
|
<ResourceDictionary x:Key="Light">
|
|
<StaticResource x:Key="DesktopBarPresenterBackground" ResourceKey="AcrylicInAppFillColorDefaultBrush" />
|
|
<StaticResource x:Key="DesktopBarPresenterForeground" ResourceKey="TextFillColorPrimaryBrush" />
|
|
<StaticResource x:Key="DesktopBarPresenterBorderBrush" ResourceKey="ControlStrokeColorDefaultBrush" />
|
|
</ResourceDictionary>
|
|
</ResourceDictionary.ThemeDictionaries>
|
|
<Thickness x:Key="DesktopBarPresenterBorderThemeThickness">0</Thickness>
|
|
<Style TargetType="controls:DesktopBarPresenter">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="{ThemeResource DesktopBarPresenterForeground}" />
|
|
<Setter Property="BorderBrush" Value="{ThemeResource DesktopBarPresenterBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="{ThemeResource DesktopBarPresenterBorderThemeThickness}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:DesktopBarPresenter">
|
|
<Border x:Name="Container" Background="Transparent">
|
|
<Border
|
|
x:Name="BackgroundElement"
|
|
MinWidth="48"
|
|
MinHeight="48"
|
|
Background="{TemplateBinding Background}"
|
|
BackgroundSizing="OuterBorderEdge"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
FlowDirection="{TemplateBinding FlowDirection}">
|
|
<ContentControl
|
|
Height="40"
|
|
Margin="4"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}" />
|
|
</Border>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="PlacementStates">
|
|
<VisualState x:Name="DefaultPlacement" />
|
|
<VisualState x:Name="BottomPlacement" />
|
|
<VisualState x:Name="TopPlacement" />
|
|
<VisualState x:Name="LeftPlacement" />
|
|
<VisualState x:Name="RightPlacement" />
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |