Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Jul 24, 2024
1 parent d7d90dd commit 79be1cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/ReaLTaiizor/Controls/Badge/Badge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,26 @@ public Badge()
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

Graphics _G = e.Graphics;

_G.Clear(BackColor);
_G.SmoothingMode = SmoothingMode.AntiAlias;

LinearGradientBrush LGB = new(new Rectangle(new Point(0, 0), new Size(Width - 2, Height)), _BGColorA, _BGColorB, 90f);

// Fills the body with LGB gradient
_G.FillEllipse(LGB, new(new Point(0, 0), new Size(Width - 2, Height - 2)));

// Draw border
_G.DrawEllipse(new(_BorderColor), new(new Point(0, 0), new Size(Width - 2, Height - 2)));

_G.DrawString(Texting, Font, new SolidBrush(ForeColor), new Rectangle(0, 0, Width - 2, Height), new StringFormat
{
Alignment = StringAlignment.Center,
LineAlignment = StringAlignment.Center
});

e.Dispose();
}

Expand Down
2 changes: 1 addition & 1 deletion src/ReaLTaiizor/ReaLTaiizor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Creator: Taiizor
// Website: www.Vegalya.com
// Created: 15.May.2019
// Changed: 18.Jul.2024
// Changed: 23.Jul.2024
// Version: 3.8.0.7
//
// |---------DO-NOT-REMOVE---------|
Expand Down
2 changes: 1 addition & 1 deletion src/ReaLTaiizor_CR/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static void Main()
CultureInfo cultureInfo = new(CultureInfo.CurrentCulture.TextInfo.CultureName);
Application.SetCompatibleTextRenderingDefault(false);
Application.CurrentCulture = cultureInfo;
Application.Run(new Forever());
Application.Run(new Catcher());
}
catch (Exception ex)
{
Expand Down

0 comments on commit 79be1cc

Please sign in to comment.