aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/WindowManager
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-09-24 21:06:41 -0500
committerFloppyDiskDrive <[email protected]>2017-09-24 21:06:41 -0500
commit44d8d5c50749b70e93dd5ccf8718645d8c3d2fad (patch)
tree66be901284162cbadb10af1495e7b88fe00a24ca /ShiftOS.Engine/WindowManager
parent600ce822228d6d4691a402260323abdc688eb73c (diff)
downloadshiftos-rewind-44d8d5c50749b70e93dd5ccf8718645d8c3d2fad.tar.gz
shiftos-rewind-44d8d5c50749b70e93dd5ccf8718645d8c3d2fad.tar.bz2
shiftos-rewind-44d8d5c50749b70e93dd5ccf8718645d8c3d2fad.zip
Added a clunky Shifter, made the wm look nicer
Diffstat (limited to 'ShiftOS.Engine/WindowManager')
-rw-r--r--ShiftOS.Engine/WindowManager/ShiftWindow.Designer.cs12
-rw-r--r--ShiftOS.Engine/WindowManager/ShiftWindow.cs29
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;
+ }
}
}