mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style<Histories, DiffViewer>: text render options
This commit is contained in:
parent
22249876b5
commit
f5bc2937ed
2 changed files with 3 additions and 2 deletions
|
@ -468,12 +468,13 @@ namespace SourceGit.Views.Widgets {
|
|||
line.SetBinding(TextBlock.ForegroundProperty, new Binding("FG"));
|
||||
line.SetBinding(TextBlock.FontStyleProperty, new Binding("Style"));
|
||||
line.SetValue(TextBlock.FontFamilyProperty, new FontFamily("Consolas,Microsoft YaHei UI"));
|
||||
line.SetValue(TextBlock.FontSizeProperty, new FontSizeConverter().ConvertFrom("9pt"));
|
||||
line.SetValue(TextBlock.FontSizeProperty, 13.0);
|
||||
line.SetValue(TextBlock.MarginProperty, new Thickness(0));
|
||||
line.SetValue(TextBlock.PaddingProperty, new Thickness(4, 0, 0, 0));
|
||||
line.SetValue(TextBlock.LineHeightProperty, 16.0);
|
||||
line.SetValue(TextOptions.TextFormattingModeProperty, TextFormattingMode.Display);
|
||||
line.SetValue(TextOptions.TextRenderingModeProperty, TextRenderingMode.ClearType);
|
||||
line.SetValue(RenderOptions.ClearTypeHintProperty, ClearTypeHint.Enabled);
|
||||
|
||||
var colContent = new DataGridTemplateColumn();
|
||||
colContent.CellTemplate = new DataTemplate();
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
<TextBlock Text="{Binding Subject}" FontFamily="Consolas,Microsoft YaHei UI" FontSize="9pt" Margin="2,0,0,0"/>
|
||||
<TextBlock Text="{Binding Subject}" FontFamily="Consolas,Microsoft YaHei UI Light" FontSize="13" RenderOptions.ClearTypeHint="Enabled" Margin="2,0,0,0"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
|
|
Loading…
Reference in a new issue