mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 14:24:43 -07:00
Add White Border to Grippers for Better Contrast on Dark Backgrounds
This commit is contained in:
parent
7145ea3f9a
commit
46b4e2931d
3 changed files with 8 additions and 5 deletions
|
@ -147,12 +147,13 @@ namespace Greenshot.Drawing.Adorners
|
|||
|
||||
targetGraphics.SmoothingMode = SmoothingMode.None;
|
||||
targetGraphics.CompositingMode = CompositingMode.SourceCopy;
|
||||
targetGraphics.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
targetGraphics.PixelOffsetMode = PixelOffsetMode.None;
|
||||
targetGraphics.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
|
||||
try
|
||||
{
|
||||
targetGraphics.FillRectangle(Brushes.Black, bounds.X, bounds.Y, bounds.Width, bounds.Height);
|
||||
targetGraphics.FillRectangle(Brushes.Black, bounds);
|
||||
targetGraphics.DrawRectangle(new Pen(Brushes.White), bounds);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
@ -174,10 +174,11 @@ namespace Greenshot.Drawing.Adorners
|
|||
|
||||
targetGraphics.SmoothingMode = SmoothingMode.None;
|
||||
targetGraphics.CompositingMode = CompositingMode.SourceCopy;
|
||||
targetGraphics.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
targetGraphics.PixelOffsetMode = PixelOffsetMode.None;
|
||||
targetGraphics.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
|
||||
targetGraphics.FillRectangle(Brushes.Black, bounds.X, bounds.Y, bounds.Width , bounds.Height);
|
||||
targetGraphics.FillRectangle(Brushes.Black, bounds);
|
||||
targetGraphics.DrawRectangle(new Pen(Brushes.White), bounds);
|
||||
targetGraphics.Restore(state);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,8 @@ namespace Greenshot.Drawing.Adorners
|
|||
Graphics targetGraphics = paintEventArgs.Graphics;
|
||||
|
||||
var bounds = Bounds;
|
||||
targetGraphics.FillRectangle(Brushes.Green, bounds.X, bounds.Y, bounds.Width, bounds.Height);
|
||||
targetGraphics.FillRectangle(Brushes.Green, bounds);
|
||||
targetGraphics.DrawRectangle(new Pen(Brushes.White), bounds);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue