From f4f0fe788b6f22055154ea8362881ff71c0bb9a2 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 11 Sep 2024 10:23:20 +0800 Subject: [PATCH] fix: vertical grid line over-draw --- src/Views/ColorPicker.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Views/ColorPicker.cs b/src/Views/ColorPicker.cs index 23355376..cbb1a3e8 100644 --- a/src/Views/ColorPicker.cs +++ b/src/Views/ColorPicker.cs @@ -111,12 +111,9 @@ namespace SourceGit.Views var border = this.FindResource("Brush.Border0") as IBrush; var pen = new Pen(border, 0.4); for (int i = 1; i < 6; i++) - { - for (int j = 1; j < 8; j++) - context.DrawLine(pen, new Point(j * 32, 0), new Point(j * 32, 192)); - context.DrawLine(pen, new Point(0, i * 32), new Point(256, i * 32)); - } + for (int j = 1; j < 8; j++) + context.DrawLine(pen, new Point(j * 32, 0), new Point(j * 32, 192)); } // Palette picker