mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
project: downgrade AvaloniaUI to 11.0.13
This commit is contained in:
parent
492859f470
commit
e2da0d3643
2 changed files with 7 additions and 7 deletions
|
@ -37,12 +37,12 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.1.2" />
|
<PackageReference Include="Avalonia" Version="11.0.13" />
|
||||||
<PackageReference Include="Avalonia.Desktop" Version="11.1.2" />
|
<PackageReference Include="Avalonia.Desktop" Version="11.0.13" />
|
||||||
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.2" />
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.13" />
|
||||||
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.1.2" />
|
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.13" />
|
||||||
|
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.13" Condition="'$(Configuration)' == 'Debug'" />
|
||||||
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
|
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
|
||||||
<PackageReference Include="Avalonia.Diagnostics" Version="11.1.2" Condition="'$(Configuration)' == 'Debug'" />
|
|
||||||
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.1.0" />
|
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.1.0" />
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
||||||
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.60" />
|
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.60" />
|
||||||
|
|
|
@ -158,7 +158,7 @@ namespace SourceGit.Views
|
||||||
IsTag = decorator.Type == Models.DecoratorType.Tag,
|
IsTag = decorator.Type == Models.DecoratorType.Tag,
|
||||||
};
|
};
|
||||||
|
|
||||||
var geo = null as StreamGeometry;
|
StreamGeometry geo;
|
||||||
switch (decorator.Type)
|
switch (decorator.Type)
|
||||||
{
|
{
|
||||||
case Models.DecoratorType.CurrentBranchHead:
|
case Models.DecoratorType.CurrentBranchHead:
|
||||||
|
@ -176,7 +176,7 @@ namespace SourceGit.Views
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var drawGeo = geo.Clone();
|
var drawGeo = geo!.Clone();
|
||||||
var iconBounds = drawGeo.Bounds;
|
var iconBounds = drawGeo.Bounds;
|
||||||
var translation = Matrix.CreateTranslation(-(Vector)iconBounds.Position);
|
var translation = Matrix.CreateTranslation(-(Vector)iconBounds.Position);
|
||||||
var scale = Math.Min(8.0 / iconBounds.Width, 8.0 / iconBounds.Height);
|
var scale = Math.Min(8.0 / iconBounds.Width, 8.0 / iconBounds.Height);
|
||||||
|
|
Loading…
Reference in a new issue