code_style: general cleanup

This commit is contained in:
Nathan Baulch 2025-06-12 08:18:20 +10:00
parent 35eda489be
commit dde08c507a
50 changed files with 98 additions and 157 deletions

View file

@ -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;
}
}