diff --git a/ReClass.NET/Controls/HotSpotTextBox.cs b/ReClass.NET/Controls/HotSpotTextBox.cs index 218cdeb7..6f136a50 100644 --- a/ReClass.NET/Controls/HotSpotTextBox.cs +++ b/ReClass.NET/Controls/HotSpotTextBox.cs @@ -91,6 +91,7 @@ private void OnCommit() public void ShowOnHotSpot(HotSpot hotSpot) { + ForeColor = Program.Settings.EditTextColor; currentHotSpot = hotSpot; if (hotSpot == null) diff --git a/ReClass.NET/Forms/SettingsForm.Designer.cs b/ReClass.NET/Forms/SettingsForm.Designer.cs index 82e4efd9..598937ac 100644 --- a/ReClass.NET/Forms/SettingsForm.Designer.cs +++ b/ReClass.NET/Forms/SettingsForm.Designer.cs @@ -54,6 +54,8 @@ private void InitializeComponent() this.stayOnTopCheckBox = new System.Windows.Forms.CheckBox(); this.colorsSettingTabPage = new System.Windows.Forms.TabPage(); this.nodeColorGroupBox = new System.Windows.Forms.GroupBox(); + this.editTextLabel = new System.Windows.Forms.Label(); + this.editTextColorBox = new ReClassNET.Controls.ColorBox(); this.nodeValueLabel = new System.Windows.Forms.Label(); this.nodePluginLabel = new System.Windows.Forms.Label(); this.nodeHexValueColorBox = new ReClassNET.Controls.ColorBox(); @@ -83,6 +85,8 @@ private void InitializeComponent() this.backgroundLabel = new System.Windows.Forms.Label(); this.backgroundColorBox = new ReClassNET.Controls.ColorBox(); this.typeDefinitionsSettingsTabPage = new System.Windows.Forms.TabPage(); + this.utf32TextSettingsLabel = new System.Windows.Forms.Label(); + this.utf32TextTypeTextBox = new System.Windows.Forms.TextBox(); this.nuintSettingsLabel = new System.Windows.Forms.Label(); this.nuintTypeTextBox = new System.Windows.Forms.TextBox(); this.nintSettingsLabel = new System.Windows.Forms.Label(); @@ -129,8 +133,6 @@ private void InitializeComponent() this.int8SettingsLabel = new System.Windows.Forms.Label(); this.int8TypeTextBox = new System.Windows.Forms.TextBox(); this.bannerBox = new ReClassNET.Controls.BannerBox(); - this.utf32TextSettingsLabel = new System.Windows.Forms.Label(); - this.utf32TextTypeTextBox = new System.Windows.Forms.TextBox(); this.settingsTabControl.SuspendLayout(); this.generalSettingsTabPage.SuspendLayout(); this.fileAssociationGroupBox.SuspendLayout(); @@ -396,6 +398,8 @@ private void InitializeComponent() // // nodeColorGroupBox // + this.nodeColorGroupBox.Controls.Add(this.editTextLabel); + this.nodeColorGroupBox.Controls.Add(this.editTextColorBox); this.nodeColorGroupBox.Controls.Add(this.nodeValueLabel); this.nodeColorGroupBox.Controls.Add(this.nodePluginLabel); this.nodeColorGroupBox.Controls.Add(this.nodeHexValueColorBox); @@ -429,6 +433,23 @@ private void InitializeComponent() this.nodeColorGroupBox.TabStop = false; this.nodeColorGroupBox.Text = "Node Colors"; // + // editTextLabel + // + this.editTextLabel.AutoSize = true; + this.editTextLabel.Location = new System.Drawing.Point(286, 198); + this.editTextLabel.Name = "editTextLabel"; + this.editTextLabel.Size = new System.Drawing.Size(79, 13); + this.editTextLabel.TabIndex = 29; + this.editTextLabel.Text = "Edit Text Color:"; + // + // editTextColorBox + // + this.editTextColorBox.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.editTextColorBox.Location = new System.Drawing.Point(410, 195); + this.editTextColorBox.Name = "editTextColorBox"; + this.editTextColorBox.Size = new System.Drawing.Size(123, 20); + this.editTextColorBox.TabIndex = 28; + // // nodeValueLabel // this.nodeValueLabel.AutoSize = true; @@ -724,6 +745,22 @@ private void InitializeComponent() this.typeDefinitionsSettingsTabPage.Text = "Type Definitions"; this.typeDefinitionsSettingsTabPage.UseVisualStyleBackColor = true; // + // utf32TextSettingsLabel + // + this.utf32TextSettingsLabel.AutoSize = true; + this.utf32TextSettingsLabel.Location = new System.Drawing.Point(254, 233); + this.utf32TextSettingsLabel.Name = "utf32TextSettingsLabel"; + this.utf32TextSettingsLabel.Size = new System.Drawing.Size(43, 13); + this.utf32TextSettingsLabel.TabIndex = 52; + this.utf32TextSettingsLabel.Text = "UTF32:"; + // + // utf32TextTypeTextBox + // + this.utf32TextTypeTextBox.Location = new System.Drawing.Point(346, 230); + this.utf32TextTypeTextBox.Name = "utf32TextTypeTextBox"; + this.utf32TextTypeTextBox.Size = new System.Drawing.Size(120, 20); + this.utf32TextTypeTextBox.TabIndex = 51; + // // nuintSettingsLabel // this.nuintSettingsLabel.AutoSize = true; @@ -1096,22 +1133,6 @@ private void InitializeComponent() this.bannerBox.Text = "Configure the global settings."; this.bannerBox.Title = "Settings"; // - // utf32TextSettingsLabel - // - this.utf32TextSettingsLabel.AutoSize = true; - this.utf32TextSettingsLabel.Location = new System.Drawing.Point(254, 233); - this.utf32TextSettingsLabel.Name = "utf32TextSettingsLabel"; - this.utf32TextSettingsLabel.Size = new System.Drawing.Size(43, 13); - this.utf32TextSettingsLabel.TabIndex = 52; - this.utf32TextSettingsLabel.Text = "UTF32:"; - // - // utf32TextTypeTextBox - // - this.utf32TextTypeTextBox.Location = new System.Drawing.Point(346, 230); - this.utf32TextTypeTextBox.Name = "utf32TextTypeTextBox"; - this.utf32TextTypeTextBox.Size = new System.Drawing.Size(120, 20); - this.utf32TextTypeTextBox.TabIndex = 51; - // // SettingsForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1247,5 +1268,7 @@ private void InitializeComponent() private System.Windows.Forms.TextBox nintTypeTextBox; private System.Windows.Forms.Label utf32TextSettingsLabel; private System.Windows.Forms.TextBox utf32TextTypeTextBox; - } + private System.Windows.Forms.Label editTextLabel; + private ColorBox editTextColorBox; + } } \ No newline at end of file diff --git a/ReClass.NET/Forms/SettingsForm.cs b/ReClass.NET/Forms/SettingsForm.cs index fcc4121e..474c305f 100644 --- a/ReClass.NET/Forms/SettingsForm.cs +++ b/ReClass.NET/Forms/SettingsForm.cs @@ -125,6 +125,7 @@ private void SetColorBindings() SetBinding(nodeCommentColorBox, nameof(ColorBox.Color), settings, nameof(Settings.CommentColor)); SetBinding(nodeTextColorBox, nameof(ColorBox.Color), settings, nameof(Settings.TextColor)); SetBinding(nodePluginColorBox, nameof(ColorBox.Color), settings, nameof(Settings.PluginColor)); + SetBinding(editTextColorBox, nameof(ColorBox.Color), settings, nameof(Settings.EditTextColor)); } private void SetTypeDefinitionBindings() diff --git a/ReClass.NET/Settings.cs b/ReClass.NET/Settings.cs index b5d9268b..65e11879 100644 --- a/ReClass.NET/Settings.cs +++ b/ReClass.NET/Settings.cs @@ -1,4 +1,4 @@ -using System.Drawing; +using System.Drawing; using System.Text; using ReClassNET.Util; @@ -74,6 +74,7 @@ public class Settings public Color PluginColor { get; set; } = Color.FromArgb(255, 0, 255); + public Color EditTextColor { get; set; } = Color.FromArgb(255, 100, 100); public CustomDataMap CustomData { get; } = new CustomDataMap(); public Settings Clone() => MemberwiseClone() as Settings;