From 18d8d63180196f0283134230f48956ca6c3e9983 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 30 May 2014 14:27:47 +0200 Subject: [PATCH] StepLabel (Dingsbums) fine-tuning, changed the mouse-move behavior to move the element instead of resizing it. Also changed the font, made it bold so it's more clearly readable and than a bit smaller to better fit the container. --- Greenshot/Drawing/StepLabelContainer.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Greenshot/Drawing/StepLabelContainer.cs b/Greenshot/Drawing/StepLabelContainer.cs index 8870e877d..23ea246b0 100644 --- a/Greenshot/Drawing/StepLabelContainer.cs +++ b/Greenshot/Drawing/StepLabelContainer.cs @@ -63,7 +63,7 @@ namespace Greenshot.Drawing { Width = 30; Height = 30; using (FontFamily fam = new FontFamily(FontFamily.GenericSansSerif.Name)) { - _font = new Font(fam, 14, FontStyle.Regular, GraphicsUnit.Pixel); + _font = new Font(fam, 12, FontStyle.Bold, GraphicsUnit.Pixel); } return true; } @@ -91,6 +91,14 @@ namespace Greenshot.Drawing { base.Dispose(); } + public override bool HandleMouseMove(int x, int y) { + Invalidate(); + Left = x - (Width / 2); + Top = y - (Height / 2); + Invalidate(); + return true; + } + /// /// Override the parent, calculate the label number, than draw ///