diff options
| author | AShifter <[email protected]> | 2017-09-25 09:35:03 -0600 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-09-25 09:35:03 -0600 |
| commit | f5004702c46d6c99737a0519d7d6735307c7501a (patch) | |
| tree | 66be901284162cbadb10af1495e7b88fe00a24ca /ShiftOS.Engine | |
| parent | f77811b2a73512db8c5aeeedd573640e10b74bd0 (diff) | |
| parent | 44d8d5c50749b70e93dd5ccf8718645d8c3d2fad (diff) | |
| download | shiftos-rewind-f5004702c46d6c99737a0519d7d6735307c7501a.tar.gz shiftos-rewind-f5004702c46d6c99737a0519d7d6735307c7501a.tar.bz2 shiftos-rewind-f5004702c46d6c99737a0519d7d6735307c7501a.zip | |
Merge remote-tracking branch 'refs/remotes/ShiftOS-Rewind/master'
Diffstat (limited to 'ShiftOS.Engine')
| -rw-r--r-- | ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs | 12 | ||||
| -rw-r--r-- | ShiftOS.Engine/WindowManager/ShiftWindow.cs | 29 |
2 files changed, 38 insertions, 3 deletions
diff --git a/ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs b/ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs index 0b215a9..c26e724 100644 --- a/ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs +++ b/ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs @@ -155,21 +155,25 @@ // this.maximizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; this.maximizebutton.BackColor = System.Drawing.Color.Black; - this.maximizebutton.Location = new System.Drawing.Point(228, 5); + this.maximizebutton.Location = new System.Drawing.Point(231, 4); this.maximizebutton.Name = "maximizebutton"; this.maximizebutton.Size = new System.Drawing.Size(21, 21); this.maximizebutton.TabIndex = 6; this.maximizebutton.TabStop = false; + this.maximizebutton.MouseEnter += new System.EventHandler(this.maximizebutton_MouseEnter); + this.maximizebutton.MouseLeave += new System.EventHandler(this.maximizebutton_MouseLeave); // // minimizebutton // this.minimizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; this.minimizebutton.BackColor = System.Drawing.Color.Black; - this.minimizebutton.Location = new System.Drawing.Point(205, 5); + this.minimizebutton.Location = new System.Drawing.Point(208, 4); this.minimizebutton.Name = "minimizebutton"; this.minimizebutton.Size = new System.Drawing.Size(21, 21); this.minimizebutton.TabIndex = 5; this.minimizebutton.TabStop = false; + this.minimizebutton.MouseEnter += new System.EventHandler(this.minimizebutton_MouseEnter); + this.minimizebutton.MouseLeave += new System.EventHandler(this.minimizebutton_MouseLeave); // // Title // @@ -188,12 +192,14 @@ // this.closebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; this.closebutton.BackColor = System.Drawing.Color.Black; - this.closebutton.Location = new System.Drawing.Point(251, 5); + this.closebutton.Location = new System.Drawing.Point(254, 4); this.closebutton.Name = "closebutton"; this.closebutton.Size = new System.Drawing.Size(21, 21); this.closebutton.TabIndex = 4; this.closebutton.TabStop = false; this.closebutton.Click += new System.EventHandler(this.closebutton_Click); + this.closebutton.MouseEnter += new System.EventHandler(this.closebutton_MouseEnter); + this.closebutton.MouseLeave += new System.EventHandler(this.closebutton_MouseLeave); // // right // diff --git a/ShiftOS.Engine/WindowManager/ShiftWindow.cs b/ShiftOS.Engine/WindowManager/ShiftWindow.cs index 9caaa6c..a004aa6 100644 --- a/ShiftOS.Engine/WindowManager/ShiftWindow.cs +++ b/ShiftOS.Engine/WindowManager/ShiftWindow.cs @@ -40,5 +40,34 @@ namespace ShiftOS.Engine.WindowManager this.Close(); } + private void closebutton_MouseEnter(object sender, EventArgs e) + { + closebutton.BackColor = Color.Gray; + } + + private void closebutton_MouseLeave(object sender, EventArgs e) + { + closebutton.BackColor = Color.Black; + } + + private void maximizebutton_MouseEnter(object sender, EventArgs e) + { + maximizebutton.BackColor = Color.Gray; + } + + private void maximizebutton_MouseLeave(object sender, EventArgs e) + { + maximizebutton.BackColor = Color.Black; + } + + private void minimizebutton_MouseEnter(object sender, EventArgs e) + { + minimizebutton.BackColor = Color.Gray; + } + + private void minimizebutton_MouseLeave(object sender, EventArgs e) + { + minimizebutton.BackColor = Color.Black; + } } } |
