style<DiffViewer>: padding text in diff viewer

This commit is contained in:
leo 2020-12-15 13:25:23 +08:00
parent 06d98a374d
commit 8ac28ff9e5

View file

@ -441,7 +441,7 @@ namespace SourceGit.UI {
textContent.SetValue(TextBlock.BackgroundProperty, Brushes.Transparent);
textContent.SetValue(TextBlock.FontSizeProperty, 12.0);
textContent.SetValue(TextBlock.MarginProperty, new Thickness(0));
textContent.SetValue(TextBlock.PaddingProperty, new Thickness(0));
textContent.SetValue(TextBlock.PaddingProperty, new Thickness(4,0,0,0));
var visualTree = new FrameworkElementFactory(typeof(Grid));
visualTree.AppendChild(borderContent);