The settings page is now pretty :D
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user