From cb536521352153185e5116a44a3532db5194e6ce Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Thu, 9 Jun 2022 20:03:04 +0200 Subject: [PATCH] Update Meta add ui to metro form --- .../Additional-Popups/MetaADD.Designer.cs | 8 ++++--- .../Forms/Additional-Popups/MetaADD.cs | 3 ++- .../Forms/Additional-Popups/MetaADD.resx | 22 ++++++++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.Designer.cs b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.Designer.cs index 51d33a32..af98e821 100644 --- a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.Designer.cs +++ b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.Designer.cs @@ -30,7 +30,7 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MetaADD)); this.textBox1 = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); + this.button1 = new MetroFramework.Controls.MetroButton(); this.SuspendLayout(); // // textBox1 @@ -43,7 +43,8 @@ // resources.ApplyResources(this.button1, "button1"); this.button1.Name = "button1"; - this.button1.UseVisualStyleBackColor = true; + this.button1.Theme = MetroFramework.MetroThemeStyle.Dark; + this.button1.UseSelectable = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // MetaADD @@ -54,6 +55,7 @@ this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "MetaADD"; + this.Theme = MetroFramework.MetroThemeStyle.Dark; this.ResumeLayout(false); this.PerformLayout(); @@ -62,6 +64,6 @@ #endregion private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Button button1; + private MetroFramework.Controls.MetroButton button1; } } \ No newline at end of file diff --git a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.cs b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.cs index a426066b..b079c717 100644 --- a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.cs +++ b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.cs @@ -8,10 +8,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using MetroFramework.Forms; namespace PckStudio { - public partial class MetaADD : Form + public partial class MetaADD : MetroForm { PCKFile currentPCK; diff --git a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.resx b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.resx index 763fe3e4..6d413a56 100644 --- a/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.resx +++ b/MinecraftUSkinEditor/Forms/Additional-Popups/MetaADD.resx @@ -117,12 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Left, Right + - 12, 12 + 12, 31 - 259, 20 + 265, 20 @@ -141,7 +145,7 @@ 1 - 102, 36 + 109, 63 75, 23 @@ -150,13 +154,13 @@ 1 - Create/Add + Add button1 - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + MetroFramework.Controls.MetroButton, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a $this @@ -171,7 +175,7 @@ 6, 13 - 284, 62 + 290, 105 @@ -2393,7 +2397,9 @@ vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC - + + NoControl + CenterParent @@ -2401,6 +2407,6 @@ MetaADD - System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a \ No newline at end of file