Changed: adde border to dialog + title bar colours
Before Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 367 B |
@ -30,8 +30,8 @@
|
||||
label1.ImageAlign = ContentAlignment.MiddleCenter;
|
||||
|
||||
this.StyleDefault = new ButtonStyle() { BackColour = Color.White, PenColour = Color.Black, ForeImage = this.DefaultImage };
|
||||
this.StyleDown = new ButtonStyle() { BackColour = Color.FromArgb(179, 179, 179), PenColour = Color.Black, ForeImage = this.DownImage };
|
||||
this.StyleOver = new ButtonStyle() { BackColour = Color.FromArgb(51, 51, 51), PenColour = Color.White, ForeImage = this.OverImage };
|
||||
this.StyleDown = new ButtonStyle() { BackColour = Color.FromArgb(0, 183, 209), PenColour = Color.Black, ForeImage = this.DownImage };
|
||||
this.StyleOver = new ButtonStyle() { BackColour = Color.FromArgb(108, 101, 196), PenColour = Color.White, ForeImage = this.OverImage };
|
||||
this.StyleSelected = new ButtonStyle() { BackColour = Color.FromArgb(51, 51, 51), PenColour = Color.White, ForeImage = this.OverImage };
|
||||
|
||||
label1.Click += delegate { this.OnClick(null); };
|
||||
|
@ -9,7 +9,8 @@
|
||||
|
||||
public partial class TDialogForm : System.Windows.Forms.Form
|
||||
{
|
||||
protected readonly Color borderColour = Color.FromArgb(232, 231, 236);
|
||||
//protected readonly Color borderColour = Color.FromArgb(232, 231, 236);
|
||||
protected readonly Color borderColour = Color.FromArgb(77, 84, 100);
|
||||
protected readonly int borderWidth = 1;
|
||||
protected readonly Color titleBarColour = Color.FromArgb(152, 175, 206);
|
||||
protected readonly Color titleBarForeColour = Color.White;
|
||||
@ -82,6 +83,7 @@
|
||||
|
||||
// border
|
||||
g.DrawRectangle(new Pen(borderColour, borderWidth), area);
|
||||
g.DrawLine(new Pen(borderColour, 1), this.DisplayRectangle.X, (titleBarHeight + 1), this.DisplayRectangle.Width, (titleBarHeight + 1));
|
||||
|
||||
area.Inflate((-1 * borderWidth), (-1 * borderWidth));
|
||||
|
||||
|