Archived
Changed: adde border to dialog + title bar colours
This commit is contained in:
1 parent
26f42976b1
commit
a151f6df96
7 files changed
+712
-714
No files matched your search
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user