Skip to content

Commit

Permalink
Update colours to increase constrast. (#133)
Browse files Browse the repository at this point in the history
* Update/lighten PDOView2 table colors
* Update/lighten dark red colors
  • Loading branch information
possibly-not authored Oct 9, 2024
1 parent 6d02e11 commit 1eef0d8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 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
12 changes: 6 additions & 6 deletions EDSEditorGUI/DevicePDOView2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public partial class DevicePDOView2 : MyTabUserControl

PDOSlot selectedslot = null;

CellBackColorAlternate viewNormal = new CellBackColorAlternate(Color.Khaki, Color.DarkKhaki);
CellBackColorAlternate viewEmpty = new CellBackColorAlternate(Color.Gray, Color.Gray);
CellBackColorAlternate viewCOB = new CellBackColorAlternate(Color.LightBlue, Color.Blue);
CellBackColorAlternate viewNormal = new CellBackColorAlternate(Color.Khaki, Color.LemonChiffon);
CellBackColorAlternate viewEmpty = new CellBackColorAlternate(Color.LightGray, Color.Gainsboro);
CellBackColorAlternate viewCOB = new CellBackColorAlternate(Color.LightBlue, Color.LightCyan);

Point RightClickPoint = new Point(0, 0);

Expand Down 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 1eef0d8

Please sign in to comment.