Skip to content

Commit c78fa7a

Browse files
authored
Merge pull request #1 from DerrikCreates/master
Support for changing text color when editing
2 parents a02fcb9 + 5580d2c commit c78fa7a

File tree

4 files changed

+46
-20
lines changed

4 files changed

+46
-20
lines changed

ReClass.NET/Controls/HotSpotTextBox.cs

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ private void OnCommit()
9191

9292
public void ShowOnHotSpot(HotSpot hotSpot)
9393
{
94+
ForeColor = Program.Settings.EditTextColor;
9495
currentHotSpot = hotSpot;
9596

9697
if (hotSpot == null)

ReClass.NET/Forms/SettingsForm.Designer.cs

+42-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ReClass.NET/Forms/SettingsForm.cs

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private void SetColorBindings()
125125
SetBinding(nodeCommentColorBox, nameof(ColorBox.Color), settings, nameof(Settings.CommentColor));
126126
SetBinding(nodeTextColorBox, nameof(ColorBox.Color), settings, nameof(Settings.TextColor));
127127
SetBinding(nodePluginColorBox, nameof(ColorBox.Color), settings, nameof(Settings.PluginColor));
128+
SetBinding(editTextColorBox, nameof(ColorBox.Color), settings, nameof(Settings.EditTextColor));
128129
}
129130

130131
private void SetTypeDefinitionBindings()

ReClass.NET/Settings.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Drawing;
1+
using System.Drawing;
22
using System.Text;
33
using ReClassNET.Util;
44

@@ -74,6 +74,7 @@ public class Settings
7474

7575
public Color PluginColor { get; set; } = Color.FromArgb(255, 0, 255);
7676

77+
public Color EditTextColor { get; set; } = Color.FromArgb(255, 100, 100);
7778
public CustomDataMap CustomData { get; } = new CustomDataMap();
7879

7980
public Settings Clone() => MemberwiseClone() as Settings;

0 commit comments

Comments
 (0)