Skip to content

Commit a74af62

Browse files
committed
Merge branch 'Shortcuts' into ShortcutDialog
2 parents 81fd18b + 034fc4c commit a74af62

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
@@ -267,18 +267,18 @@ private void ApplyScaling()
267267
/// </summary>
268268
private static void UpdateItemHighlightFont(ShortcutListItem item)
269269
{
270-
item.ForeColor = item.Conflicts == null ? SystemColors.ControlText : Color.DarkRed;
271-
item.SubItems[1].ForeColor = item.KeysString == "None" ? SystemColors.GrayText : SystemColors.ControlText;
272-
if (item.IsModified)
270+
if (item.Conflicts == null)
273271
{
274-
item.Font = new Font(Globals.Settings.DefaultFont, FontStyle.Bold);
275-
item.UseItemStyleForSubItems = true;
272+
item.ForeColor = SystemColors.ControlText;
273+
item.SubItems[1].ForeColor = item.Custom == Keys.None ? SystemColors.GrayText : SystemColors.ControlText;
276274
}
277275
else
278276
{
279-
item.Font = new Font(Globals.Settings.DefaultFont, FontStyle.Regular);
280-
item.UseItemStyleForSubItems = false;
277+
item.ForeColor = Color.DarkRed;
278+
item.SubItems[1].ForeColor = Color.DarkRed;
281279
}
280+
item.Font = new Font(Globals.Settings.DefaultFont, item.IsModified ? FontStyle.Bold : FontStyle.Regular);
281+
item.UseItemStyleForSubItems = item.IsModified;
282282
}
283283

284284
/// <summary>

0 commit comments

Comments
 (0)