Skip to content

Commit 42f8e41

Browse files
committed
ux: lower background opacity for selected hunk
1 parent dbc95e7 commit 42f8e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ public override void Render(DrawingContext context)
169169
return;
170170

171171
var color = (Color)this.FindResource("SystemAccentColor");
172-
var brush = new SolidColorBrush(color, 0.5);
172+
var brush = new SolidColorBrush(color, 0.1);
173173
var pen = new Pen(color.ToUInt32());
174174

175175
var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X;
176-
var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 8, highlightChunk.Height);
176+
var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 7, highlightChunk.Height);
177177

178178
context.DrawRectangle(brush, null, rect);
179179
context.DrawLine(pen, rect.TopLeft, rect.TopRight);

0 commit comments

Comments
 (0)