mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added BorderColor
This commit is contained in:
parent
fa2633ef05
commit
3ad81d6d6c
1 changed files with 21 additions and 1 deletions
|
@ -112,6 +112,23 @@ public bool DrawBorder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Color borderColor;
|
||||||
|
|
||||||
|
[DefaultValue(typeof(Color), "Black")]
|
||||||
|
public Color BorderColor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return borderColor;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
borderColor = value;
|
||||||
|
|
||||||
|
Invalidate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private bool autoEllipsis;
|
private bool autoEllipsis;
|
||||||
|
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
|
@ -150,7 +167,10 @@ protected override void OnPaint(PaintEventArgs pe)
|
||||||
|
|
||||||
if (drawBorder)
|
if (drawBorder)
|
||||||
{
|
{
|
||||||
g.DrawRectangleProper(Pens.Black, ClientRectangle);
|
using (Pen pen = new Pen(BorderColor, 1))
|
||||||
|
{
|
||||||
|
g.DrawRectangleProper(pen, ClientRectangle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue