diff options
| author | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
| commit | c81573594f509177214bbc9b64427c8aabdc30a6 (patch) | |
| tree | 0f16be1fffc1e1557adafbd1baa9ff7aa16a3381 /ShiftOS.Engine/UI/ShiftStripRenderer.cs | |
| parent | 90b1bdca5f8f2bf634a0b83ed9b623843ada5661 (diff) | |
| download | shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.gz shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.bz2 shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.zip | |
Add SaveSystem, FullScreen Terminal and stuff
Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped
us get it back.
Diffstat (limited to 'ShiftOS.Engine/UI/ShiftStripRenderer.cs')
| -rw-r--r-- | ShiftOS.Engine/UI/ShiftStripRenderer.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ShiftOS.Engine/UI/ShiftStripRenderer.cs b/ShiftOS.Engine/UI/ShiftStripRenderer.cs new file mode 100644 index 0000000..7b8498f --- /dev/null +++ b/ShiftOS.Engine/UI/ShiftStripRenderer.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ShiftOS.Engine.UI +{ + public class ShiftStripRenderer : ToolStripProfessionalRenderer + { + protected override void OnRenderLabelBackground(ToolStripItemRenderEventArgs e) + { + using (var b = new SolidBrush(e.Item.BackColor)) + { + e.Graphics.FillRectangle(b, new Rectangle(Point.Empty, e.Item.Size)); + } + } + } +} |
