mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
upgrade<Project>: upgrade .NET to 4.8
This commit is contained in:
parent
6529d0565c
commit
866f137c02
4 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net46</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||||
|
|
|
@ -93,7 +93,8 @@ namespace SourceGit.UI {
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface(blame.FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
new Typeface(blame.FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
||||||
12.0,
|
12.0,
|
||||||
Brushes.Black);
|
Brushes.Black,
|
||||||
|
VisualTreeHelper.GetDpi(this).PixelsPerDip);
|
||||||
|
|
||||||
var lineNumberWidth = formatted.Width + 16;
|
var lineNumberWidth = formatted.Width + 16;
|
||||||
var minWidth = area.ActualWidth - lineNumberWidth;
|
var minWidth = area.ActualWidth - lineNumberWidth;
|
||||||
|
|
|
@ -437,7 +437,8 @@ namespace SourceGit.UI {
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
new Typeface(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
||||||
12.0,
|
12.0,
|
||||||
Brushes.Black);
|
Brushes.Black,
|
||||||
|
VisualTreeHelper.GetDpi(this).PixelsPerDip);
|
||||||
|
|
||||||
var grid = new DataGrid();
|
var grid = new DataGrid();
|
||||||
grid.SetValue(Grid.RowProperty, 1);
|
grid.SetValue(Grid.RowProperty, 1);
|
||||||
|
|
|
@ -492,7 +492,8 @@ namespace SourceGit.UI {
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface(FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
new Typeface(FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
||||||
12.0,
|
12.0,
|
||||||
Brushes.Black);
|
Brushes.Black,
|
||||||
|
VisualTreeHelper.GetDpi(this).PixelsPerDip);
|
||||||
|
|
||||||
return formatted.Width + 16;
|
return formatted.Width + 16;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue