From bca879db94bc6395dbfa77628747080311fdb226 Mon Sep 17 00:00:00 2001 From: Richie Moch Date: Sun, 23 Dec 2018 19:15:07 -0600 Subject: started work on the pong, implemented "ShiftToolStrip". (note: pong is very buggy) --- ShiftOS.Main/Desktop.cs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 ShiftOS.Main/Desktop.cs (limited to 'ShiftOS.Main/Desktop.cs') diff --git a/ShiftOS.Main/Desktop.cs b/ShiftOS.Main/Desktop.cs new file mode 100644 index 0000000..41e0873 --- /dev/null +++ b/ShiftOS.Main/Desktop.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine.UI; +using ShiftOS.Engine.WindowManager; + +namespace ShiftOS.Main +{ + public partial class Desktop : Form + { + public Desktop() + { + InitializeComponent(); + foreach (var menuItem in applicationsToolStripMenuItem.DropDownItems.OfType()) + { + menuItem.BackColor = Color.FromArgb(64,64,64); + menuItem.ForeColor = Color.White; + } + menuStrip1.RenderMode = ToolStripRenderMode.ManagerRenderMode; + ToolStripManager.Renderer = new ShiftToolStrip(); + this.FormClosed += (o, a) => Application.Exit(); + } + + private void terminalToolStripMenuItem_Click(object sender, EventArgs e) + { + ShiftWM.Init(new Apps.Terminal(), "Terminal", Properties.Resources.iconTerminal); + } + + private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e) + { + ShiftWM.Init(new Apps.FileSkimmer(), "FileSkimmer", Properties.Resources.iconFileSkimmer); + } + + private void textPadToolStripMenuItem_Click(object sender, EventArgs e) + { + ShiftWM.Init(new Apps.TextPad(), "TextPad", Properties.Resources.iconTextPad); + } + + private void pongToolStripMenuItem_Click(object sender, EventArgs e) + { + ShiftWM.Init(new Apps.Pong(), "Pong", null); + } + + } +} -- cgit v1.2.3