aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Desktop.cs
diff options
context:
space:
mode:
authorRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
committerRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
commitbca879db94bc6395dbfa77628747080311fdb226 (patch)
tree24103811cd3df0957f2450bbe579e05d7dc7c4e6 /ShiftOS.Main/Desktop.cs
parentd94c79dbf5183230e5fd3342848408f776de60ea (diff)
downloadshiftos-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.Main/Desktop.cs')
-rw-r--r--ShiftOS.Main/Desktop.cs51
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);
+ }
+
+ }
+}