From c286ed8f8bba858dfa306369c6d162aba1903235 Mon Sep 17 00:00:00 2001 From: Rohaq Date: Fri, 30 Dec 2016 20:29:06 +0000 Subject: [PATCH 1/2] Replaced bad use of SystemColors.ControlText (black) with SystemColors.Window (white by default) --- GUI/Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/Main.cs b/GUI/Main.cs index 86ab32e8ba..61f0417538 100644 --- a/GUI/Main.cs +++ b/GUI/Main.cs @@ -125,14 +125,14 @@ private void ConflictsUpdated() } else { - if (row.DefaultCellStyle.BackColor != SystemColors.ControlText) + if (row.DefaultCellStyle.BackColor != SystemColors.Window) { foreach (DataGridViewCell cell in row.Cells) { cell.ToolTipText = null; } - row.DefaultCellStyle.BackColor = SystemColors.ControlText; + row.DefaultCellStyle.BackColor = SystemColors.Window; ModList.InvalidateRow(row.Index); } } From ba905c326c3a09830f779f41d77a49c6bc6134c6 Mon Sep 17 00:00:00 2001 From: Rohaq Date: Fri, 30 Dec 2016 20:29:06 +0000 Subject: [PATCH 2/2] Replaced bad use of SystemColors.ControlText (black) with Colors.Empty (default value for DefaultCellStyle.BackColor) --- GUI/Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/Main.cs b/GUI/Main.cs index 86ab32e8ba..5f27609fff 100644 --- a/GUI/Main.cs +++ b/GUI/Main.cs @@ -125,14 +125,14 @@ private void ConflictsUpdated() } else { - if (row.DefaultCellStyle.BackColor != SystemColors.ControlText) + if (row.DefaultCellStyle.BackColor != Color.Empty) { foreach (DataGridViewCell cell in row.Cells) { cell.ToolTipText = null; } - row.DefaultCellStyle.BackColor = SystemColors.ControlText; + row.DefaultCellStyle.BackColor = Color.Empty; ModList.InvalidateRow(row.Index); } }