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;
|
label1.ImageAlign = ContentAlignment.MiddleCenter;
|
||||||
|
|
||||||
this.StyleDefault = new ButtonStyle() { BackColour = Color.White, PenColour = Color.Black, ForeImage = this.DefaultImage };
|
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.StyleDown = new ButtonStyle() { BackColour = Color.FromArgb(0, 183, 209), PenColour = Color.Black, ForeImage = this.DownImage };
|
||||||
this.StyleOver = new ButtonStyle() { BackColour = Color.FromArgb(51, 51, 51), PenColour = Color.White, ForeImage = this.OverImage };
|
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 };
|
this.StyleSelected = new ButtonStyle() { BackColour = Color.FromArgb(51, 51, 51), PenColour = Color.White, ForeImage = this.OverImage };
|
||||||
|
|
||||||
label1.Click += delegate { this.OnClick(null); };
|
label1.Click += delegate { this.OnClick(null); };
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
public partial class TDialogForm : System.Windows.Forms.Form
|
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 int borderWidth = 1;
|
||||||
protected readonly Color titleBarColour = Color.FromArgb(152, 175, 206);
|
protected readonly Color titleBarColour = Color.FromArgb(152, 175, 206);
|
||||||
protected readonly Color titleBarForeColour = Color.White;
|
protected readonly Color titleBarForeColour = Color.White;
|
||||||
@ -82,6 +83,7 @@
|
|||||||
|
|
||||||
// border
|
// border
|
||||||
g.DrawRectangle(new Pen(borderColour, borderWidth), area);
|
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));
|
area.Inflate((-1 * borderWidth), (-1 * borderWidth));
|
||||||
|
|
||||||
|