From f36393b45b7c328b49a24ba3365fc93d06eeb05f Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Tue, 15 Jul 2014 12:59:45 +0400 Subject: [PATCH] go to action: use gray instead of italic for shortcuts rendering --- .../com/intellij/ide/util/gotoByName/GotoActionModel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java index e7fd1afa4062..8a4ad83395cb 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java @@ -52,7 +52,8 @@ import java.awt.*; import java.util.*; import java.util.List; -import static com.intellij.ui.SimpleTextAttributes.*; +import static com.intellij.ui.SimpleTextAttributes.STYLE_PLAIN; +import static com.intellij.ui.SimpleTextAttributes.STYLE_SEARCH_MATCH; public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, Comparator, EdtSortingModel { @Nullable private final Project myProject; @@ -234,7 +235,7 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C final Shortcut shortcut = preferKeyboardShortcut(KeymapManager.getInstance().getActiveKeymap().getShortcuts(getActionId(anAction))); if (shortcut != null) { - nameComponent.append(" (" + KeymapUtil.getShortcutText(shortcut) + ")", new SimpleTextAttributes(STYLE_ITALIC, fg)); + nameComponent.append(" (" + KeymapUtil.getShortcutText(shortcut) + ")", new SimpleTextAttributes(STYLE_PLAIN, groupFg)); } String groupName = actionWithParentGroup.getAction() instanceof ApplyIntentionAction ? null : actionWithParentGroup.getGroupName();