-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e12b23
commit 49bc9d5
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Horizon/Resources/UI/ControlDefinitions/WindowButtonDefinition.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Style TargetType="{x:Type Button}" x:Key="WindowButtonStyle"> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type ButtonBase}"> | ||
<Border | ||
x:Name="Chrome" | ||
BorderBrush="{TemplateBinding BorderBrush}" | ||
Margin="0" | ||
Background="{TemplateBinding Background}" | ||
SnapsToDevicePixels="True"> | ||
<ContentPresenter | ||
ContentTemplate="{TemplateBinding ContentTemplate}" | ||
Content="{TemplateBinding Content}" | ||
ContentStringFormat="{TemplateBinding ContentStringFormat}" | ||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | ||
Margin="{TemplateBinding Padding}" | ||
RecognizesAccessKey="True" | ||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | ||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
<Setter Property="Background" Value="Transparent" /> | ||
<Setter Property="FontFamily" Value="Webdings" /> | ||
<Setter Property="FontSize" Value="13.333" /> | ||
<Setter Property="Foreground" Value="{DynamicResource BaseFontColor}" /> | ||
<Setter Property="Margin" Value="0,2,3,0" /> | ||
<Style.Triggers> | ||
<Trigger Property="IsMouseOver" Value="True"> | ||
<Setter Property="Foreground" Value="{DynamicResource BaseHighlightColor}" /> | ||
</Trigger> | ||
</Style.Triggers> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters