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. --- .../Controls/ShifterColorInput.Designer.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source/WindowsFormsApplication1/Controls/ShifterColorInput.Designer.cs') diff --git a/source/WindowsFormsApplication1/Controls/ShifterColorInput.Designer.cs b/source/WindowsFormsApplication1/Controls/ShifterColorInput.Designer.cs index 47cf0a1..3703960 100644 --- a/source/WindowsFormsApplication1/Controls/ShifterColorInput.Designer.cs +++ b/source/WindowsFormsApplication1/Controls/ShifterColorInput.Designer.cs @@ -28,15 +28,15 @@ /// private void InitializeComponent() { - this.pnlmainbuttoncolour = new System.Windows.Forms.Panel(); - this.lblabel = new System.Windows.Forms.Label(); + this.pnlmainbuttoncolour = new ShiftUI.Panel(); + this.lblabel = new ShiftUI.Label(); this.SuspendLayout(); // // pnlmainbuttoncolour // - this.pnlmainbuttoncolour.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnlmainbuttoncolour.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlmainbuttoncolour.Anchor = ((ShiftUI.AnchorStyles)(((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom) + | ShiftUI.AnchorStyles.Right))); + this.pnlmainbuttoncolour.BorderStyle = ShiftUI.BorderStyle.FixedSingle; this.pnlmainbuttoncolour.Location = new System.Drawing.Point(128, 3); this.pnlmainbuttoncolour.MaximumSize = new System.Drawing.Size(41, 20); this.pnlmainbuttoncolour.Name = "pnlmainbuttoncolour"; @@ -45,9 +45,9 @@ // // lblabel // - this.lblabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.lblabel.Anchor = ((ShiftUI.AnchorStyles)((((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom) + | ShiftUI.AnchorStyles.Left) + | ShiftUI.AnchorStyles.Right))); this.lblabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblabel.Location = new System.Drawing.Point(3, 6); this.lblabel.Name = "lblabel"; @@ -59,9 +59,9 @@ // ShifterColorInput // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.pnlmainbuttoncolour); - this.Controls.Add(this.lblabel); + this.AutoScaleMode = ShiftUI.AutoScaleMode.Font; + this.Widgets.Add(this.pnlmainbuttoncolour); + this.Widgets.Add(this.lblabel); this.Name = "ShifterColorInput"; this.Size = new System.Drawing.Size(173, 28); this.ResumeLayout(false); @@ -70,8 +70,8 @@ #endregion - private System.Windows.Forms.Panel pnlmainbuttoncolour; - private System.Windows.Forms.Label lblabel; + private ShiftUI.Panel pnlmainbuttoncolour; + private ShiftUI.Label lblabel; } } -- cgit v1.2.3