This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
using System.Drawing;
using System.Windows.Forms;
namespace VibranceHud;
public sealed class HeaderPanel : Panel
{
private readonly CardSurface _surface = new CardSurface();
public HeaderPanel()
{
SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, value: true);
BackColor = Color.Transparent;
}
protected override void OnPaint(PaintEventArgs e)
{
_surface.Paint(this, e.Graphics);
base.OnPaint(e);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
_surface.Dispose();
}
base.Dispose(disposing);
}
}