mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
code_style: run dotnet format
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
a94c7f55ce
commit
22d4f26bc3
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
@ -91,7 +90,7 @@ namespace SourceGit.Views
|
||||||
{
|
{
|
||||||
_needRebuildInlines = false;
|
_needRebuildInlines = false;
|
||||||
GenerateFormattedTextElements();
|
GenerateFormattedTextElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_inlines.Count == 0)
|
if (_inlines.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -103,7 +102,7 @@ namespace SourceGit.Views
|
||||||
if (inline.X > width)
|
if (inline.X > width)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (inline.Element is { Type: Models.InlineElementType.Code})
|
if (inline.Element is { Type: Models.InlineElementType.Code })
|
||||||
{
|
{
|
||||||
var rect = new Rect(inline.X, (height - inline.Text.Height - 2) * 0.5, inline.Text.WidthIncludingTrailingWhitespace + 8, inline.Text.Height + 2);
|
var rect = new Rect(inline.X, (height - inline.Text.Height - 2) * 0.5, inline.Text.WidthIncludingTrailingWhitespace + 8, inline.Text.Height + 2);
|
||||||
var roundedRect = new RoundedRect(rect, new CornerRadius(4));
|
var roundedRect = new RoundedRect(rect, new CornerRadius(4));
|
||||||
|
@ -129,7 +128,7 @@ namespace SourceGit.Views
|
||||||
var subject = Subject;
|
var subject = Subject;
|
||||||
if (string.IsNullOrEmpty(subject))
|
if (string.IsNullOrEmpty(subject))
|
||||||
{
|
{
|
||||||
_inlines.Clear();
|
_needRebuildInlines = true;
|
||||||
InvalidateVisual();
|
InvalidateVisual();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue