mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
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.
This commit is contained in:
parent
7cbb0fd2eb
commit
18d8d63180
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override the parent, calculate the label number, than draw
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue