From d5db25494527154ead533a414969d3447d7a9b29 Mon Sep 17 00:00:00 2001 From: GabeMx5 Date: Sun, 21 Jul 2024 09:13:40 +0200 Subject: [PATCH] cross pointer shadow minor changes --- LaserGRBL/UserControls/GrblPanel3D.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/LaserGRBL/UserControls/GrblPanel3D.cs b/LaserGRBL/UserControls/GrblPanel3D.cs index 4513396c..78ec623c 100644 --- a/LaserGRBL/UserControls/GrblPanel3D.cs +++ b/LaserGRBL/UserControls/GrblPanel3D.cs @@ -831,9 +831,15 @@ private void DoGDIDraw(PaintEventArgs e) mMousePos.Value.Y >= mPadding.Top && mMousePos.Value.Y <= Height - mPadding.Bottom) { - using (Pen pCross = new Pen(ColorScheme.PreviewBackColor)) + Color loShadowColor = Color.FromArgb( + 128, + ColorScheme.PreviewBackColor.R, + ColorScheme.PreviewBackColor.G, + ColorScheme.PreviewBackColor.B + ); + using (Pen pCross = new Pen(loShadowColor)) { - DrawCross(e.Graphics, pCross, new Point(mMousePos.Value.X - 1, mMousePos.Value.Y - 1)); + DrawCross(e.Graphics, pCross, new Point(mMousePos.Value.X + 1, mMousePos.Value.Y + 1)); } using (Pen pCross = new Pen(ColorScheme.PreviewCrossCursor)) { @@ -851,7 +857,7 @@ private void DoGDIDraw(PaintEventArgs e) private void DrawCross(Graphics g, Pen pCross, Point point) { - const int halfCrossSize = 4; + const int halfCrossSize = 4; g.DrawLine(pCross, new Point(mPadding.Left, point.Y), new Point(point.X - 5, point.Y)); g.DrawLine(pCross, new Point(point.X + halfCrossSize, point.Y), new Point(Width - mPadding.Right, point.Y)); g.DrawLine(pCross, new Point(point.X, mPadding.Top), new Point(point.X, point.Y - halfCrossSize));