mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style<*>: enable RenderOptions.ClearTypeHint for all ContextMenus/DataGrid/Tree
This commit is contained in:
parent
f7f2bf3eee
commit
24a61dbef8
3 changed files with 6 additions and 3 deletions
|
@ -7,6 +7,9 @@
|
||||||
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
||||||
<Setter Property="MinHeight" Value="24"/>
|
<Setter Property="MinHeight" Value="24"/>
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||||
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>
|
||||||
|
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType"/>
|
||||||
|
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="{x:Type ContextMenu}">
|
<Style TargetType="{x:Type ContextMenu}">
|
||||||
|
@ -14,9 +17,7 @@
|
||||||
<Setter Property="Grid.IsSharedSizeScope" Value="False" />
|
<Setter Property="Grid.IsSharedSizeScope" Value="False" />
|
||||||
<Setter Property="HorizontalOffset" Value="-4"/>
|
<Setter Property="HorizontalOffset" Value="-4"/>
|
||||||
<Setter Property="VerticalOffset" Value="-4"/>
|
<Setter Property="VerticalOffset" Value="-4"/>
|
||||||
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>
|
<Setter Property="TextElement.FontSize" Value="13"/>
|
||||||
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType"/>
|
|
||||||
<Setter Property="TextElement.FontSize" Value="9pt"/>
|
|
||||||
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<Style x:Key="Style.DataGridRow" TargetType="{x:Type DataGridRow}">
|
<Style x:Key="Style.DataGridRow" TargetType="{x:Type DataGridRow}">
|
||||||
<Setter Property="BorderThickness" Value="0"/>
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||||
|
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
|
||||||
|
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, Mode=OneWay, FallbackValue=Stretch, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, Mode=OneWay, FallbackValue=Stretch, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||||
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, Mode=OneWay, FallbackValue=Center, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, Mode=OneWay, FallbackValue=Center, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||||
|
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="{x:Type controls:TreeItem}">
|
<ControlTemplate TargetType="{x:Type controls:TreeItem}">
|
||||||
|
|
Loading…
Reference in a new issue