upgrade<Project>: upgrade .NET to 4.8

This commit is contained in:
leo 2021-01-04 12:55:38 +08:00
parent 6529d0565c
commit 866f137c02
4 changed files with 7 additions and 4 deletions

View file

@ -93,7 +93,8 @@ namespace SourceGit.UI {
FlowDirection.LeftToRight,
new Typeface(blame.FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
12.0,
Brushes.Black);
Brushes.Black,
VisualTreeHelper.GetDpi(this).PixelsPerDip);
var lineNumberWidth = formatted.Width + 16;
var minWidth = area.ActualWidth - lineNumberWidth;

View file

@ -437,7 +437,8 @@ namespace SourceGit.UI {
FlowDirection.LeftToRight,
new Typeface(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
12.0,
Brushes.Black);
Brushes.Black,
VisualTreeHelper.GetDpi(this).PixelsPerDip);
var grid = new DataGrid();
grid.SetValue(Grid.RowProperty, 1);

View file

@ -492,7 +492,8 @@ namespace SourceGit.UI {
FlowDirection.LeftToRight,
new Typeface(FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
12.0,
Brushes.Black);
Brushes.Black,
VisualTreeHelper.GetDpi(this).PixelsPerDip);
return formatted.Width + 16;
}