mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-02 07:09:27 +03:00
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace DarkUI
|
|
{
|
|
public class DarkStatusStrip : StatusStrip
|
|
{
|
|
#region Constructor Region
|
|
|
|
public DarkStatusStrip()
|
|
{
|
|
AutoSize = false;
|
|
BackColor = Colors.GreyBackground;
|
|
ForeColor = Colors.LightText;
|
|
Padding = new Padding(0, 5, 0, 3);
|
|
Size = new Size(Size.Width, 24);
|
|
SizingGrip = false;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Paint Region
|
|
|
|
protected override void OnPaintBackground(PaintEventArgs e)
|
|
{
|
|
var g = e.Graphics;
|
|
|
|
using (var b = new SolidBrush(Colors.GreyBackground))
|
|
{
|
|
g.FillRectangle(b, ClientRectangle);
|
|
}
|
|
|
|
using (var p = new Pen(Colors.DarkBorder))
|
|
{
|
|
g.DrawLine(p, ClientRectangle.Left, 0, ClientRectangle.Right, 0);
|
|
}
|
|
|
|
using (var p = new Pen(Colors.LightBorder))
|
|
{
|
|
g.DrawLine(p, ClientRectangle.Left, 1, ClientRectangle.Right, 1);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|