From a857324c761bd538f2c45d02ba2d284b5f56ba63 Mon Sep 17 00:00:00 2001 From: "Vassiliy.Kudryashov" Date: Thu, 19 Jul 2018 16:04:15 +0300 Subject: [PATCH] Provide 'disabled' foreground for async submenu 'Loading...' --- .../src/com/intellij/ui/popup/async/AsyncPopupImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ui/popup/async/AsyncPopupImpl.java b/platform/platform-impl/src/com/intellij/ui/popup/async/AsyncPopupImpl.java index 94cb5d838865..7712fb94ee2a 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/async/AsyncPopupImpl.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/async/AsyncPopupImpl.java @@ -78,7 +78,9 @@ public class AsyncPopupImpl extends WizardPopup implements Runnable { if (myPanel != null) return myPanel; myPanel = new JPanel(new BorderLayout()); myPanel.add(new AsyncProcessIcon("Async Popup Step"), BorderLayout.WEST); - myPanel.add(new JBLabel("Loading..."), BorderLayout.CENTER); + JBLabel label = new JBLabel("Loading..."); + label.setForeground(UIUtil.getLabelDisabledForeground()); + myPanel.add(label, BorderLayout.CENTER); myPanel.setBorder(new EmptyBorder(UIUtil.getListCellPadding())); myPanel.setBackground(UIUtil.getListBackground()); myPanel.registerKeyboardAction(new ActionListener() {