mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
code_style: general cleanup
This commit is contained in:
parent
35eda489be
commit
dde08c507a
50 changed files with 98 additions and 157 deletions
|
@ -95,20 +95,15 @@ namespace SourceGit.Views
|
|||
normalTypeface,
|
||||
FontSize,
|
||||
Foreground);
|
||||
|
||||
context.DrawText(formatted, new Point(offsetX, 0));
|
||||
|
||||
if (isName)
|
||||
{
|
||||
var lineY = formatted.Baseline + 2;
|
||||
context.DrawText(formatted, new Point(offsetX, 0));
|
||||
context.DrawLine(underlinePen, new Point(offsetX, lineY), new Point(offsetX + formatted.Width, lineY));
|
||||
offsetX += formatted.WidthIncludingTrailingWhitespace;
|
||||
}
|
||||
else
|
||||
{
|
||||
context.DrawText(formatted, new Point(offsetX, 0));
|
||||
offsetX += formatted.WidthIncludingTrailingWhitespace;
|
||||
}
|
||||
|
||||
offsetX += formatted.WidthIncludingTrailingWhitespace;
|
||||
isName = !isName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue