mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 11:10:23 +12:00
Use a 1x1 checkerboard fill pattern for selection highlight
This commit is contained in:
parent
838a632999
commit
2e23856e92
|
@ -134,7 +134,7 @@ public override void OnUpdate()
|
|||
|
||||
public override void OnDraw(Graphics g)
|
||||
{
|
||||
using (Image selectionHighlightPattern = ImageHelpers.CreateCheckerPattern(8, 8, Color.FromArgb(128, Color.White), Color.FromArgb(128, Color.Gray)))
|
||||
using (Image selectionHighlightPattern = ImageHelpers.CreateCheckerPattern(1, 1, Color.FromArgb(128, Color.LightGray), Color.FromArgb(128, Color.Gray)))
|
||||
using (Brush selectionHighlightBrush = new TextureBrush(selectionHighlightPattern, System.Drawing.Drawing2D.WrapMode.Tile))
|
||||
{
|
||||
g.FillRectangle(selectionHighlightBrush, CutOutRectangle);
|
||||
|
|
Loading…
Reference in a new issue