mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 21:54:59 +00:00
style<*>: change font render mode
This commit is contained in:
parent
0b581752fb
commit
a94a62bd27
10 changed files with 53 additions and 45 deletions
|
@ -448,9 +448,11 @@ namespace SourceGit.Views.Widgets {
|
|||
textContent.SetBinding(TextBlock.ForegroundProperty, new Binding("FG"));
|
||||
textContent.SetBinding(TextBlock.FontStyleProperty, new Binding("Style"));
|
||||
textContent.SetValue(TextBlock.BackgroundProperty, Brushes.Transparent);
|
||||
textContent.SetValue(TextBlock.FontSizeProperty, 12.0);
|
||||
textContent.SetValue(TextBlock.FontSizeProperty, new FontSizeConverter().ConvertFrom("10pt"));
|
||||
textContent.SetValue(TextBlock.MarginProperty, new Thickness(0));
|
||||
textContent.SetValue(TextBlock.PaddingProperty, new Thickness(4, 0, 0, 0));
|
||||
textContent.SetValue(TextOptions.TextFormattingModeProperty, TextFormattingMode.Display);
|
||||
textContent.SetValue(TextOptions.TextRenderingModeProperty, TextRenderingMode.ClearType);
|
||||
|
||||
var visualTree = new FrameworkElementFactory(typeof(Grid));
|
||||
visualTree.AppendChild(borderContent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue