diff options
Diffstat (limited to 'ShiftOS.Main/Desktop.cs')
| -rw-r--r-- | ShiftOS.Main/Desktop.cs | 51 |
1 files changed, 51 insertions, 0 deletions
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<ToolStripMenuItem>()) + { + 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); + } + + } +} |
