This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
linear-app-launcher/RyzStudio/Windows/Forms/THorizontalSeparator.cs

27 lines
838 B
C#
Raw Normal View History

2020-05-12 23:37:01 +00:00
using System.Drawing;
2020-04-27 12:17:13 +00:00
using System.Windows.Forms;
namespace RyzStudio.Windows.Forms
{
public partial class THorizontalSeparator : System.Windows.Forms.UserControl
2020-04-27 12:17:13 +00:00
{
public THorizontalSeparator()
2020-04-27 12:17:13 +00:00
{
InitializeComponent();
this.MaximumSize = new Size(SystemInformation.VirtualScreen.Width, 2);
}
protected override void OnPaintBackground(PaintEventArgs e)
{
base.OnPaintBackground(e);
Graphics g = e.Graphics;
2020-04-27 12:17:13 +00:00
g.FillRectangle(new SolidBrush(Color.FromArgb(213, 223, 229)), new Rectangle(this.DisplayRectangle.Left, 0, this.DisplayRectangle.Width, 1));
g.FillRectangle(new SolidBrush(Color.FromArgb(249, 251, 253)), new Rectangle(this.DisplayRectangle.Left, 1, this.DisplayRectangle.Width, 1));
}
2020-04-27 12:17:13 +00:00
}
}