From 6b804f03ebcdd1c5aa145f29ae71b62bd61f8cb9 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Tue, 19 Jul 2016 21:53:26 -0400 Subject: Full ShiftUI conversion The only bugs are that windows don't show in the center of the screen, and Gecko webbrowsers are not serializing properly to be converted to ShiftUI widgets (you can use the ToWidget() extension method to convert a WinForms control to a ShiftUI widget) Also multiple desktop panels are removed due to some odd bug I can't diagnose. Will add them back in the future. Promise. I loved creating GNOME2 skins. --- .../Apps/IconManager.Designer.cs | 58 +++++++++++----------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'source/WindowsFormsApplication1/Apps/IconManager.Designer.cs') diff --git a/source/WindowsFormsApplication1/Apps/IconManager.Designer.cs b/source/WindowsFormsApplication1/Apps/IconManager.Designer.cs index 3203088..d933a96 100644 --- a/source/WindowsFormsApplication1/Apps/IconManager.Designer.cs +++ b/source/WindowsFormsApplication1/Apps/IconManager.Designer.cs @@ -28,12 +28,12 @@ /// private void InitializeComponent() { - this.pnlactions = new System.Windows.Forms.Panel(); - this.pnlicons = new System.Windows.Forms.FlowLayoutPanel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btnsave = new System.Windows.Forms.Button(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); + this.pnlactions = new ShiftUI.Panel(); + this.pnlicons = new ShiftUI.FlowLayoutPanel(); + this.panel1 = new ShiftUI.Panel(); + this.btnsave = new ShiftUI.Button(); + this.button1 = new ShiftUI.Button(); + this.button2 = new ShiftUI.Button(); this.pnlactions.SuspendLayout(); this.panel1.SuspendLayout(); this.SuspendLayout(); @@ -41,10 +41,10 @@ // pnlactions // this.pnlactions.BackColor = System.Drawing.Color.Gray; - this.pnlactions.Controls.Add(this.button2); - this.pnlactions.Controls.Add(this.button1); - this.pnlactions.Controls.Add(this.btnsave); - this.pnlactions.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pnlactions.Widgets.Add(this.button2); + this.pnlactions.Widgets.Add(this.button1); + this.pnlactions.Widgets.Add(this.btnsave); + this.pnlactions.Dock = ShiftUI.DockStyle.Bottom; this.pnlactions.ForeColor = System.Drawing.Color.White; this.pnlactions.Location = new System.Drawing.Point(0, 511); this.pnlactions.Name = "pnlactions"; @@ -54,8 +54,8 @@ // pnlicons // this.pnlicons.BackColor = System.Drawing.Color.White; - this.pnlicons.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlicons.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.pnlicons.Dock = ShiftUI.DockStyle.Fill; + this.pnlicons.FlowDirection = ShiftUI.FlowDirection.TopDown; this.pnlicons.ForeColor = System.Drawing.Color.Black; this.pnlicons.Location = new System.Drawing.Point(0, 0); this.pnlicons.Name = "pnlicons"; @@ -64,9 +64,9 @@ // // panel1 // - this.panel1.Controls.Add(this.pnlicons); - this.panel1.Controls.Add(this.pnlactions); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Widgets.Add(this.pnlicons); + this.panel1.Widgets.Add(this.pnlactions); + this.panel1.Dock = ShiftUI.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(720, 552); @@ -74,8 +74,8 @@ // // btnsave // - this.btnsave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.btnsave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnsave.Anchor = ((ShiftUI.AnchorStyles)((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom))); + this.btnsave.FlatStyle = ShiftUI.FlatStyle.Flat; this.btnsave.Location = new System.Drawing.Point(3, 3); this.btnsave.Name = "btnsave"; this.btnsave.Size = new System.Drawing.Size(75, 35); @@ -86,8 +86,8 @@ // // button1 // - this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Anchor = ((ShiftUI.AnchorStyles)((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom))); + this.button1.FlatStyle = ShiftUI.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(84, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 35); @@ -98,8 +98,8 @@ // // button2 // - this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Anchor = ((ShiftUI.AnchorStyles)((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom))); + this.button2.FlatStyle = ShiftUI.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(165, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 35); @@ -111,9 +111,9 @@ // IconManager // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleMode = ShiftUI.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(720, 552); - this.Controls.Add(this.panel1); + this.Widgets.Add(this.panel1); this.Name = "IconManager"; this.Text = "IconManager"; this.Load += new System.EventHandler(this.IconManager_Load); @@ -125,11 +125,11 @@ #endregion - private System.Windows.Forms.Panel pnlactions; - private System.Windows.Forms.FlowLayoutPanel pnlicons; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Button btnsave; + private ShiftUI.Panel pnlactions; + private ShiftUI.FlowLayoutPanel pnlicons; + private ShiftUI.Panel panel1; + private ShiftUI.Button button2; + private ShiftUI.Button button1; + private ShiftUI.Button btnsave; } } \ No newline at end of file -- cgit v1.2.3