Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update colours to increase constrast. #133

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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