diff options
| author | Richie Moch <[email protected]> | 2018-12-23 19:15:07 -0600 |
|---|---|---|
| committer | Richie Moch <[email protected]> | 2018-12-23 19:15:07 -0600 |
| commit | bca879db94bc6395dbfa77628747080311fdb226 (patch) | |
| tree | 24103811cd3df0957f2450bbe579e05d7dc7c4e6 /ShiftOS.Engine/UI/ShiftToolStrip.cs | |
| parent | d94c79dbf5183230e5fd3342848408f776de60ea (diff) | |
| download | shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.gz shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.bz2 shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.zip | |
started work on the pong, implemented "ShiftToolStrip". (note: pong is very buggy)
Diffstat (limited to 'ShiftOS.Engine/UI/ShiftToolStrip.cs')
| -rw-r--r-- | ShiftOS.Engine/UI/ShiftToolStrip.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ShiftOS.Engine/UI/ShiftToolStrip.cs b/ShiftOS.Engine/UI/ShiftToolStrip.cs new file mode 100644 index 0000000..853e79c --- /dev/null +++ b/ShiftOS.Engine/UI/ShiftToolStrip.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ShiftOS.Engine.UI +{ + public partial class ShiftToolStrip : ToolStripProfessionalRenderer + { + protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e) + { + if (!e.Item.Selected) base.OnRenderMenuItemBackground(e); + else + { + var rc = new Rectangle(Point.Empty, e.Item.Size); + e.Graphics.FillRectangle(Brushes.Gray, rc); + e.Graphics.DrawRectangle(Pens.White, 1, 0, rc.Width - 2, rc.Height - 1); + } + } + } +} |
