From d94c79dbf5183230e5fd3342848408f776de60ea Mon Sep 17 00:00:00 2001 From: Richie Moch Date: Sat, 22 Dec 2018 15:24:55 -0600 Subject: Various changes, began working on the texture skinning. --- ShiftOS.Main/MainGame/Desktop.cs | 72 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 ShiftOS.Main/MainGame/Desktop.cs (limited to 'ShiftOS.Main/MainGame/Desktop.cs') diff --git a/ShiftOS.Main/MainGame/Desktop.cs b/ShiftOS.Main/MainGame/Desktop.cs new file mode 100644 index 0000000..0cb3583 --- /dev/null +++ b/ShiftOS.Main/MainGame/Desktop.cs @@ -0,0 +1,72 @@ +using System; +using System.Windows.Forms; +using ShiftOS.Engine.WindowManager; +using ShiftOS.Main.Properties; +using ShiftOS.Main.ShiftOS.Apps; +using System.IO; +using ShiftOS.Engine; +using System.Drawing; +using ShiftOS.Engine.UI; + +namespace ShiftOS.Main.ShiftOS +{ + // testing github because git hates me + public partial class Desktop : Form + { + + public Desktop() + { + InitializeComponent(); + foreach (object t in applicationsToolStripMenuItem.DropDownItems) + { + var appList = t as ToolStripItem; + if (t == null) continue; + appList.BackColor = Color.FromArgb(64, 64, 64); + appList.ForeColor = Color.White; + } + timer1.Start(); + Closed += (sender, args) => { Application.Exit(); }; + + } + + private void shifterToolStripMenuItem_Click(object sender, EventArgs e) + { + Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter(); + ShiftWM.Init(app, "Shifter", Resources.iconShifter); + } + + private void Desktop_Load(object sender, EventArgs e) + { + this.WindowState = FormWindowState.Maximized; + } + + private void terminalToolStripMenuItem_Click(object sender, EventArgs e) + { + var t = new Apps.Terminal(); + ShiftWM.Init(t, "Terminal", Resources.iconTerminal, false); + + } + + private void textPadToolStripMenuItem_Click(object sender, EventArgs e) + { + var t = new TextPad(); + ShiftWM.Init(t, "TextPad", Resources.iconTextPad); + } + + private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e) + { + var fs = new FileSkimmer(); + ShiftWM.Init(fs, "File Skimmer", Resources.iconFileSkimmer); + } + + private void timer1_Tick(object sender, EventArgs e) + { + lblClock.Text = DateTime.Now.ToString("hh:mm:ss"); + } + + private void menuStrip1_MenuActivate(object sender, EventArgs e) + { + menuStrip1.BackColor = Color.FromArgb(64, 64, 64); + } + } +} -- cgit v1.2.3