IDEA-76817 Run configurations combobox pressed state is absent(cherry picked from commit 91a5c96)

This commit is contained in:
Konstantin Bulenkov
2011-12-06 11:16:16 +01:00
parent 57b59718d3
commit 3a6b9cc03a
@@ -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));