From 42f8e419858c0c75fbdbaa2ca2e4bf012519a3bb Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 18 Jul 2024 12:13:19 +0800 Subject: [PATCH] ux: lower background opacity for selected hunk --- src/Views/TextDiffView.axaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/TextDiffView.axaml.cs b/src/Views/TextDiffView.axaml.cs index 6f68fad4..4f904f8a 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -169,11 +169,11 @@ namespace SourceGit.Views return; var color = (Color)this.FindResource("SystemAccentColor"); - var brush = new SolidColorBrush(color, 0.5); + var brush = new SolidColorBrush(color, 0.1); var pen = new Pen(color.ToUInt32()); var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X; - var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 8, highlightChunk.Height); + var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 7, highlightChunk.Height); context.DrawRectangle(brush, null, rect); context.DrawLine(pen, rect.TopLeft, rect.TopRight);