mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
ux: background highlight margin
This commit is contained in:
parent
26c59bfd0d
commit
a68b61da94
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue