Skip to content

Commit 034fc4c

Browse files
committed
Improved ShortcutDialog update 2
Non-custom items with conflicts also has the shortcut keys text colored red.
1 parent 6df86df commit 034fc4c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

FlashDevelop/Dialogs/ShortcutDialog.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,18 +251,18 @@ private void ApplyScaling()
251251
/// </summary>
252252
private static void UpdateItemHighlightFont(ShortcutListItem item)
253253
{
254-
item.ForeColor = item.Conflicts == null ? SystemColors.ControlText : Color.DarkRed;
255-
item.SubItems[1].ForeColor = item.KeysString == "None" ? SystemColors.GrayText : SystemColors.ControlText;
256-
if (item.IsModified)
254+
if (item.Conflicts == null)
257255
{
258-
item.Font = new Font(Globals.Settings.DefaultFont, FontStyle.Bold);
259-
item.UseItemStyleForSubItems = true;
256+
item.ForeColor = SystemColors.ControlText;
257+
item.SubItems[1].ForeColor = item.Custom == Keys.None ? SystemColors.GrayText : SystemColors.ControlText;
260258
}
261259
else
262260
{
263-
item.Font = new Font(Globals.Settings.DefaultFont, FontStyle.Regular);
264-
item.UseItemStyleForSubItems = false;
261+
item.ForeColor = Color.DarkRed;
262+
item.SubItems[1].ForeColor = Color.DarkRed;
265263
}
264+
item.Font = new Font(Globals.Settings.DefaultFont, item.IsModified ? FontStyle.Bold : FontStyle.Regular);
265+
item.UseItemStyleForSubItems = item.IsModified;
266266
}
267267

268268
/// <summary>

0 commit comments

Comments
 (0)