style<Statistics>: change layout of Statistics

This commit is contained in:
leo 2024-03-04 17:34:46 +08:00
parent ae02e1025e
commit ad9cf615ab
2 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,7 @@ namespace SourceGit.Views {
// Draw coordinate
var maxLabel = new FormattedText($"{maxV}", CultureInfo.CurrentCulture, FlowDirection.LeftToRight, typeface, 12.0, LineBrush);
var horizonStart = maxLabel.Width + 8;
var labelHeight = 32;
var labelHeight = maxLabel.Height;
context.DrawText(maxLabel, new Point(0, -maxLabel.Height * 0.5));
context.DrawLine(pen, new Point(horizonStart, 0), new Point(horizonStart, height - labelHeight));
context.DrawLine(pen, new Point(horizonStart, height - labelHeight), new Point(width, height - labelHeight));