aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/ShiftOS/Desktop.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Main/ShiftOS/Desktop.cs')
-rw-r--r--ShiftOS.Main/ShiftOS/Desktop.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/ShiftOS.Main/ShiftOS/Desktop.cs b/ShiftOS.Main/ShiftOS/Desktop.cs
index 7d1a052..64dafdc 100644
--- a/ShiftOS.Main/ShiftOS/Desktop.cs
+++ b/ShiftOS.Main/ShiftOS/Desktop.cs
@@ -5,24 +5,28 @@ 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()
+ Graphics g;
+ public Desktop()
{
InitializeComponent();
timer1.Start();
- Setup();
Closed += (sender, args) => { Application.Exit(); };
- }
+ var s = new ShiftStripRenderer();
+
+ }
private void shifterToolStripMenuItem_Click(object sender, EventArgs e)
{
Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter();
- ShiftWM.Init(app, "Shifter", null);
+ ShiftWM.Init(app, "Shifter", Resources.iconShifter);
}
private void Desktop_Load(object sender, EventArgs e)
@@ -53,11 +57,11 @@ namespace ShiftOS.Main.ShiftOS
{
lblClock.Text = DateTime.Now.ToString("hh:mm:ss");
}
- public void Setup()
+
+ private void SetupToolStrip(ToolStripRenderEventArgs e, Graphics g)
{
- if (!Directory.Exists(SaveSystem.gameDir)) Directory.CreateDirectory(SaveSystem.gameDir);
- if (!Directory.Exists(SaveSystem.fontDir)) Directory.CreateDirectory(SaveSystem.fontDir);
- if (!File.Exists(SaveSystem.fontDir + "\\termFont.ttf")) File.WriteAllBytes(SaveSystem.fontDir + "\\termFont.ttf", Resources.UbuntuMono_R);
+ var s = new ShiftStripRenderer();
+ s.DrawToolStripBackground(e);
}
}
}