Skip to content

Commit

Permalink
Update/lighten dark red colors
Browse files Browse the repository at this point in the history
  • Loading branch information
possibly-not committed Aug 19, 2024
1 parent df29db0 commit 6f63fe6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions EDSEditorGUI/DeviceODView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private bool Checkdirty()
{
var result = false;

if (button_saveChanges.BackColor == Color.Red)
if (button_saveChanges.BackColor == Color.Tomato)
{

var answer = checkBox_autosave.Checked
Expand Down Expand Up @@ -435,7 +435,7 @@ public void PopulateObject()
private void DataDirty(object sender, EventArgs e)
{
if (!justUpdating)
button_saveChanges.BackColor = Color.Red;
button_saveChanges.BackColor = Color.Tomato;
}

private void Button_saveChanges_Click(object sender, EventArgs e)
Expand Down
6 changes: 3 additions & 3 deletions EDSEditorGUI/DevicePDOView2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public DevicePDOView2()
grid1[1, 3 + x * 8] = new MyHeader(string.Format("Byte {0}", x));
grid1[1, 3 + x * 8].ColumnSpan = 8;

grid1[1, 3 + x * 8].View.BackColor = Color.Red;
grid1[1, 3 + x * 8].View.BackColor = Color.Tomato;

}

Expand Down Expand Up @@ -541,12 +541,12 @@ public MyHeader(object value) : base(value)
view.Font = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Bold);
view.WordWrap = true;
view.TextAlignment = DevAge.Drawing.ContentAlignment.MiddleCenter;
view.BackColor = Color.Red;
view.BackColor = Color.Tomato;

string text = value.ToString();
if (text == "0" || text == "8" || text == "16" || text == "24" || text == "32" || text == "40" || text == "48" || text == "56")
{
view.ForeColor = Color.Red;
view.ForeColor = Color.Tomato;
}

View = view;
Expand Down
2 changes: 1 addition & 1 deletion EDSEditorGUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private void Eds_onDataDirty(bool dirty, EDSsharp sender)
DeviceView d = (DeviceView)c;
if (d.eds.Dirty == true)
{
page.BackColor = Color.Red;
page.BackColor = Color.Tomato;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion EDSEditorGUI/InsertObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private bool Verify(bool InitiallyDisableIfError = false)
DataGridViewCellStyle styleErr = new DataGridViewCellStyle
{
Font = new Font(dataGridView.Font, FontStyle.Bold),
ForeColor = Color.Red
ForeColor = Color.Tomato
};

dataGridView.Rows.Clear();
Expand Down
2 changes: 1 addition & 1 deletion EDSEditorGUI/ModuleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void populatemoduleinfo()
}
else
{
lvi2.BackColor = Color.Red;
lvi2.BackColor = Color.Tomato;
}
}

Expand Down

0 comments on commit 6f63fe6

Please sign in to comment.