ux: background highlight margin

This commit is contained in:
leo 2024-07-17 17:14:46 +08:00
parent 26c59bfd0d
commit a68b61da94
No known key found for this signature in database

View file

@ -162,7 +162,7 @@ namespace SourceGit.Views
var pen = new Pen(color.ToUInt32()); var pen = new Pen(color.ToUInt32());
var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X; var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X;
var rect = new Rect(x, highlightChunk.Y, view.Bounds.Width, highlightChunk.Height); var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 8, highlightChunk.Height);
context.DrawRectangle(brush, null, rect); context.DrawRectangle(brush, null, rect);
context.DrawLine(pen, rect.TopLeft, rect.TopRight); context.DrawLine(pen, rect.TopLeft, rect.TopRight);