Skip to content

Commit 1eef0d8

Browse files
authored
Update colours to increase constrast. (#133)
* Update/lighten PDOView2 table colors * Update/lighten dark red colors
1 parent 6d02e11 commit 1eef0d8

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

EDSEditorGUI/DeviceODView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private bool Checkdirty()
135135
{
136136
var result = false;
137137

138-
if (button_saveChanges.BackColor == Color.Red)
138+
if (button_saveChanges.BackColor == Color.Tomato)
139139
{
140140

141141
var answer = checkBox_autosave.Checked
@@ -435,7 +435,7 @@ public void PopulateObject()
435435
private void DataDirty(object sender, EventArgs e)
436436
{
437437
if (!justUpdating)
438-
button_saveChanges.BackColor = Color.Red;
438+
button_saveChanges.BackColor = Color.Tomato;
439439
}
440440

441441
private void Button_saveChanges_Click(object sender, EventArgs e)

EDSEditorGUI/DevicePDOView2.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public partial class DevicePDOView2 : MyTabUserControl
2424

2525
PDOSlot selectedslot = null;
2626

27-
CellBackColorAlternate viewNormal = new CellBackColorAlternate(Color.Khaki, Color.DarkKhaki);
28-
CellBackColorAlternate viewEmpty = new CellBackColorAlternate(Color.Gray, Color.Gray);
29-
CellBackColorAlternate viewCOB = new CellBackColorAlternate(Color.LightBlue, Color.Blue);
27+
CellBackColorAlternate viewNormal = new CellBackColorAlternate(Color.Khaki, Color.LemonChiffon);
28+
CellBackColorAlternate viewEmpty = new CellBackColorAlternate(Color.LightGray, Color.Gainsboro);
29+
CellBackColorAlternate viewCOB = new CellBackColorAlternate(Color.LightBlue, Color.LightCyan);
3030

3131
Point RightClickPoint = new Point(0, 0);
3232

@@ -62,7 +62,7 @@ public DevicePDOView2()
6262
grid1[1, 3 + x * 8] = new MyHeader(string.Format("Byte {0}", x));
6363
grid1[1, 3 + x * 8].ColumnSpan = 8;
6464

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

6767
}
6868

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

546546
string text = value.ToString();
547547
if (text == "0" || text == "8" || text == "16" || text == "24" || text == "32" || text == "40" || text == "48" || text == "56")
548548
{
549-
view.ForeColor = Color.Red;
549+
view.ForeColor = Color.Tomato;
550550
}
551551

552552
View = view;

EDSEditorGUI/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ private void Eds_onDataDirty(bool dirty, EDSsharp sender)
452452
DeviceView d = (DeviceView)c;
453453
if (d.eds.Dirty == true)
454454
{
455-
page.BackColor = Color.Red;
455+
page.BackColor = Color.Tomato;
456456
}
457457
else
458458
{

EDSEditorGUI/InsertObjects.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private bool Verify(bool InitiallyDisableIfError = false)
150150
DataGridViewCellStyle styleErr = new DataGridViewCellStyle
151151
{
152152
Font = new Font(dataGridView.Font, FontStyle.Bold),
153-
ForeColor = Color.Red
153+
ForeColor = Color.Tomato
154154
};
155155

156156
dataGridView.Rows.Clear();

EDSEditorGUI/ModuleInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void populatemoduleinfo()
6767
}
6868
else
6969
{
70-
lvi2.BackColor = Color.Red;
70+
lvi2.BackColor = Color.Tomato;
7171
}
7272
}
7373

0 commit comments

Comments
 (0)