2021-07-20 01:26:10 -07:00
|
|
|
<ResourceDictionary
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2021-08-10 01:55:01 -07:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:models="clr-namespace:SourceGit.Models">
|
2021-07-20 01:26:10 -07:00
|
|
|
|
|
|
|
<Style x:Key="Style.Window" TargetType="{x:Type Window}">
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
|
|
<Setter Property="UseLayoutRounding" Value="True"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Window}"/>
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
2021-08-15 18:14:19 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border0}"/>
|
2021-07-20 01:26:10 -07:00
|
|
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>
|
|
|
|
<Setter Property="TextOptions.TextHintingMode" Value="Animated"/>
|
|
|
|
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType"/>
|
2021-08-04 22:44:25 -07:00
|
|
|
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
|
2021-08-10 01:55:01 -07:00
|
|
|
<Setter Property="FontFamily" Value="{Binding Source={x:Static models:Preference.Instance}, Path=General.FontFamilyWindow, Mode=OneWay}"/>
|
2021-07-20 01:26:10 -07:00
|
|
|
|
|
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
|
|
<Setter.Value>
|
|
|
|
<WindowChrome CaptionHeight="28" UseAeroCaptionButtons="False" ResizeBorderThickness="4" CornerRadius="0"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
|
2021-08-06 02:19:04 -07:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Window}">
|
|
|
|
<AdornerDecorator>
|
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}">
|
|
|
|
<ContentPresenter/>
|
|
|
|
</Border>
|
|
|
|
</AdornerDecorator>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2021-07-20 01:26:10 -07:00
|
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|