From 69f901561971b2d5a7a0aebb63bd378a4b7b1ad4 Mon Sep 17 00:00:00 2001 From: ComputeLinux Date: Sat, 23 Jul 2016 10:16:05 -0700 Subject: Add WindowsEXE running as a shiftorium thing. --- .../Desktop/ShiftOSDesktop.Designer.cs | 17 +++++++++-------- .../WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs | 5 +++++ .../Desktop/ShiftOSDesktop.resx | 3 --- 3 files changed, 14 insertions(+), 11 deletions(-) (limited to 'source/WindowsFormsApplication1/Desktop') diff --git a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.Designer.cs b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.Designer.cs index 0116fc9..e9bc12b 100644 --- a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.Designer.cs +++ b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.Designer.cs @@ -1179,45 +1179,45 @@ // FolderToolStripMenuItem // this.FolderToolStripMenuItem.Name = "FolderToolStripMenuItem"; - this.FolderToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.FolderToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.FolderToolStripMenuItem.Text = "Folder"; this.FolderToolStripMenuItem.Click += new System.EventHandler(this.FolderToolStripMenuItem_Click); // // ToolStripMenuItem2 // this.ToolStripMenuItem2.Name = "ToolStripMenuItem2"; - this.ToolStripMenuItem2.Size = new System.Drawing.Size(152, 6); + this.ToolStripMenuItem2.Size = new System.Drawing.Size(151, 6); // // ArtpadPictureToolStripMenuItem // this.ArtpadPictureToolStripMenuItem.Name = "ArtpadPictureToolStripMenuItem"; - this.ArtpadPictureToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.ArtpadPictureToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.ArtpadPictureToolStripMenuItem.Text = "Artpad Picture"; // // TextDocumentToolStripMenuItem // this.TextDocumentToolStripMenuItem.Name = "TextDocumentToolStripMenuItem"; - this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.TextDocumentToolStripMenuItem.Text = "Text Document"; this.TextDocumentToolStripMenuItem.Click += new System.EventHandler(this.TextDocumentToolStripMenuItem_Click); // // NewSkin // this.NewSkin.Name = "NewSkin"; - this.NewSkin.Size = new System.Drawing.Size(155, 22); + this.NewSkin.Size = new System.Drawing.Size(154, 22); this.NewSkin.Text = "Skin"; this.NewSkin.Click += new System.EventHandler(this.NewSkin_Click); // // WebpageToolStripMenuItem // this.WebpageToolStripMenuItem.Name = "WebpageToolStripMenuItem"; - this.WebpageToolStripMenuItem.Size = new System.Drawing.Size(152, 6); + this.WebpageToolStripMenuItem.Size = new System.Drawing.Size(151, 6); this.WebpageToolStripMenuItem.Visible = false; // // ShortcutToolStripMenuItem // this.ShortcutToolStripMenuItem.Name = "ShortcutToolStripMenuItem"; - this.ShortcutToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.ShortcutToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.ShortcutToolStripMenuItem.Text = "Shortcut"; this.ShortcutToolStripMenuItem.Visible = false; // @@ -1225,7 +1225,7 @@ // this.scriptToolStripMenuItem.Name = "scriptToolStripMenuItem"; this.scriptToolStripMenuItem.ShowShortcutKeys = false; - this.scriptToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.scriptToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.scriptToolStripMenuItem.Text = "Script"; this.scriptToolStripMenuItem.Click += new System.EventHandler(this.scriptToolStripMenuItem_Click); // @@ -1281,6 +1281,7 @@ this.flicons.Name = "flicons"; this.flicons.Size = new System.Drawing.Size(1268, 661); this.flicons.TabIndex = 3; + this.flicons.Paint += new System.Windows.Forms.PaintEventHandler(this.flicons_Paint); // // cmbfactions // diff --git a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs index 19a641d..373461e 100644 --- a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs +++ b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs @@ -1312,6 +1312,11 @@ namespace ShiftOS } }; } + + private void flicons_Paint(object sender, PaintEventArgs e) + { + + } } public class DesktopIconManager diff --git a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.resx b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.resx index 1ee550a..096ddbf 100644 --- a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.resx +++ b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.resx @@ -120,9 +120,6 @@ 17, 17 - - 17, 17 - 164, 17 -- cgit v1.2.3 From 31027cd3cbd01325a13312feed7566ee746ce89a Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Sat, 23 Jul 2016 15:28:07 -0400 Subject: Attempt to fix panel buttons. --- source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/WindowsFormsApplication1/Desktop') diff --git a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs index 373461e..36ae34b 100644 --- a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs +++ b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs @@ -170,6 +170,16 @@ namespace ShiftOS private void ShiftOSDesktop_Load(object sender, EventArgs e) { + this.pnlpanelbuttonholder.AutoSize = false; + this.pnlpanelbuttonholder.ControlAdded += (o, a) => + { + pnlpanelbuttonholder.Width += a.Control.Width + API.CurrentSkin.panelbuttongap; + }; + this.pnlpanelbuttonholder.ControlRemoved += (o, a) => + { + pnlpanelbuttonholder.Width -= a.Control.Width + API.CurrentSkin.panelbuttongap; + }; + Viruses.CheckForInfected(); this.ShowInTaskbar = false; this.FormBorderStyle = FormBorderStyle.None; -- cgit v1.2.3