The settings page is now pretty :D

This commit is contained in:
2023-05-22 15:33:19 +02:00
parent af8db571f3
commit dd3dbcadf6
4 changed files with 134 additions and 44 deletions
+17
View File
@@ -435,5 +435,22 @@ namespace Test_Merge
}
}
}
private void removeBorders(object sender,PaintEventArgs e)
{
GroupBox gpbx = (GroupBox)sender;
using (Pen pen = new Pen(gpbx.BackColor,50))
{
e.Graphics.DrawRectangle(pen, 0, 0, gpbx.Width - 1, gpbx.Height - 1);
e.Graphics.DrawRectangle(pen, 0, 0, gpbx.Width - 1, gpbx.Height - 1);
}
using (var brush = new SolidBrush(gpbx.ForeColor))
{
var textPosition = new Point(5, 0); // Adjust the X and Y values as needed
e.Graphics.DrawString(gpbx.Text, gpbx.Font, brush, textPosition);
}
}
}
}