|
|
|
@ -1,11 +1,6 @@ |
|
|
|
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
|
|
<Design.PreviewWith> |
|
|
|
<Border Padding="20" Background="Black"> |
|
|
|
<CaptionButtons Height="30" Foreground="{DynamicResource SystemControlForegroundBaseHighBrush}" /> |
|
|
|
</Border> |
|
|
|
</Design.PreviewWith> |
|
|
|
<Style Selector="CaptionButtons"> |
|
|
|
<Setter Property="Foreground" Value="{TemplateBinding Foreground}"/> |
|
|
|
<Style Selector="CaptionButtons"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}"/> |
|
|
|
<Setter Property="Canvas.Right" Value="0" /> |
|
|
|
<Setter Property="MaxHeight" Value="30" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
@ -16,39 +11,39 @@ |
|
|
|
<Setter Property="Width" Value="45" /> |
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
</Style> |
|
|
|
<Style Selector="Panel:pointerover.captionButton"> |
|
|
|
<Setter Property="Background" Value="Red" /> |
|
|
|
<Style Selector="Panel:pointerover"> |
|
|
|
<Setter Property="Background" Value="#7F7f7f7f" /> |
|
|
|
</Style> |
|
|
|
<Style Selector="Panel#PART_CloseButton:pointerover"> |
|
|
|
<Setter Property="Background" Value="#AFFF0000" /> |
|
|
|
<Setter Property="Background" Value="#7FFF0000" /> |
|
|
|
</Style> |
|
|
|
<Style Selector="Viewbox"> |
|
|
|
<Setter Property="Width" Value="11" /> |
|
|
|
<Setter Property="Margin" Value="2" /> |
|
|
|
</Style> |
|
|
|
</StackPanel.Styles> |
|
|
|
<Panel x:Name="PART_FullScreenButton" Classes="captionButton"> |
|
|
|
<Panel x:Name="PART_FullScreenButton"> |
|
|
|
<Viewbox> |
|
|
|
<Path Stretch="UniformToFill" Fill="{TemplateBinding Foreground}" /> |
|
|
|
</Viewbox> |
|
|
|
</Panel> |
|
|
|
|
|
|
|
<Panel x:Name="PART_MinimiseButton" Classes="captionButton"> |
|
|
|
<Panel x:Name="PART_MinimiseButton"> |
|
|
|
<Viewbox> |
|
|
|
<Path Stretch="UniformToFill" Fill="{TemplateBinding Foreground}" Data="M2048 1229v-205h-2048v205h2048z" /> |
|
|
|
</Viewbox> |
|
|
|
</Panel> |
|
|
|
|
|
|
|
<Panel x:Name="PART_RestoreButton" Classes="captionButton"> |
|
|
|
<Panel x:Name="PART_RestoreButton"> |
|
|
|
<Viewbox> |
|
|
|
<Viewbox.RenderTransform> |
|
|
|
<RotateTransform Angle="-90" /> |
|
|
|
</Viewbox.RenderTransform> |
|
|
|
<Path Stretch="UniformToFill" Fill="{TemplateBinding Foreground}"/> |
|
|
|
<Path Stretch="UniformToFill" Fill="{TemplateBinding Foreground}"/> |
|
|
|
</Viewbox> |
|
|
|
</Panel> |
|
|
|
|
|
|
|
<Panel x:Name="PART_CloseButton" Classes="captionButton"> |
|
|
|
<Panel x:Name="PART_CloseButton"> |
|
|
|
<Viewbox> |
|
|
|
<Path Stretch="UniformToFill" Fill="{TemplateBinding Foreground}" Data="M1169 1024l879 -879l-145 -145l-879 879l-879 -879l-145 145l879 879l-879 879l145 145l879 -879l879 879l145 -145z" /> |
|
|
|
</Viewbox> |
|
|
|
@ -69,4 +64,7 @@ |
|
|
|
<Style Selector="CaptionButtons:fullscreen Panel#PART_FullScreenButton Path"> |
|
|
|
<Setter Property="Data" Value="M205 1024h819v-819h-205v469l-674 -674l-145 145l674 674h-469v205zM1374 1229h469v-205h-819v819h205v-469l674 674l145 -145z" /> |
|
|
|
</Style> |
|
|
|
</Styles> |
|
|
|
<Style Selector="CaptionButtons:fullscreen Panel#PART_RestoreButton, CaptionButtons:fullscreen Panel#PART_MinimiseButton"> |
|
|
|
<Setter Property="IsVisible" Value="False" /> |
|
|
|
</Style> |
|
|
|
</Styles> |
|
|
|
|