From 3a6b9cc03a6d8b6bf1fd3b68503d23e2c381723d Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 6 Dec 2011 11:16:16 +0100 Subject: [PATCH] IDEA-76817 Run configurations combobox pressed state is absent(cherry picked from commit 91a5c96) --- .../intellij/openapi/actionSystem/ex/ComboBoxAction.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java index 2f0fc8c0b051..a8843a37dfdf 100644 --- a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java +++ b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java @@ -299,7 +299,11 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent g2.setColor(UIUtil.getControlColor()); final int w = getWidth(); final int h = getHeight(); - g2.setPaint(new GradientPaint(0,0, new Gray(250, 180), 0, h, new Gray(220, 180))); + if (getModel().isArmed() && getModel().isPressed()) { + g2.setPaint(new GradientPaint(0,0, new Gray(220, 180), 0, h, new Gray(180, 180))); + } else { + g2.setPaint(new GradientPaint(0,0, new Gray(250, 180), 0, h, new Gray(220, 180))); + } g2.fillRect(2, 0, w-2, h); if (!myMouseInside) { g2.setPaint(new GradientPaint(0,0, Gray._180, 0, h, Gray._150));