upgrade<Version>: Release 1.9

This commit is contained in:
leo 2020-11-18 09:33:43 +08:00
parent 84b2b4d7ae
commit 59e075ff09
4 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# SourceGit # SourceGit
开源的Git客户端仅用于Windows 10。需要`.NET 5.0` 开源的Git客户端仅用于Windows 10。
## 预览 ## 预览

View file

@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework> <TargetFramework>net46</TargetFramework>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>App.ico</ApplicationIcon> <ApplicationIcon>App.ico</ApplicationIcon>
@ -12,7 +9,7 @@
<Description>OpenSource GIT client for Windows</Description> <Description>OpenSource GIT client for Windows</Description>
<Copyright>Copyright © sourcegit 2020. All rights reserved.</Copyright> <Copyright>Copyright © sourcegit 2020. All rights reserved.</Copyright>
<ApplicationManifest>App.manifest</ApplicationManifest> <ApplicationManifest>App.manifest</ApplicationManifest>
<Version>1.8</Version> <Version>1.9</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<StartupObject>SourceGit.App</StartupObject> <StartupObject>SourceGit.App</StartupObject>
<PackageProjectUrl>https://gitee.com/sourcegit/SourceGit.git</PackageProjectUrl> <PackageProjectUrl>https://gitee.com/sourcegit/SourceGit.git</PackageProjectUrl>

View file

@ -117,7 +117,8 @@ namespace SourceGit.UI {
new Typeface(content.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch), new Typeface(content.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
content.FontSize, content.FontSize,
Brushes.Black, Brushes.Black,
VisualTreeHelper.GetDpi(this).PixelsPerDip); new NumberSubstitution(),
TextFormattingMode.Ideal);
if (minWidth < formatter.Width) { if (minWidth < formatter.Width) {
content.Document.PageWidth = formatter.Width + 16; content.Document.PageWidth = formatter.Width + 16;
minWidth = formatter.Width; minWidth = formatter.Width;

View file

@ -218,7 +218,8 @@ namespace SourceGit.UI {
new Typeface(leftText.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch), new Typeface(leftText.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
leftText.FontSize, leftText.FontSize,
Brushes.Black, Brushes.Black,
VisualTreeHelper.GetDpi(this).PixelsPerDip); new NumberSubstitution(),
TextFormattingMode.Ideal);
if (minWidth < formatter.Width) minWidth = formatter.Width; if (minWidth < formatter.Width) minWidth = formatter.Width;