From 348b4805589d4fd2cf2a033500cfae9dce326089 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 25 Nov 2015 16:00:14 +0100 Subject: [PATCH] IDEA-148433 OS X default theme: dropdown lists don't look good (cherry picked from commit 4b4c0776ae1360182e8aee378b040401d5e07d77) --- .../com/intellij/openapi/actionSystem/ex/ComboBoxAction.java | 2 ++ 1 file changed, 2 insertions(+) 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 25340daa659f..ddd7d1eedc5f 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 @@ -152,6 +152,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent setModel(new MyButtonModel()); setHorizontalAlignment(LEFT); setFocusable(false); + putClientProperty("styleCombo", Boolean.TRUE); Insets margins = getMargin(); setMargin(JBUI.insets(margins.top, 2, margins.bottom, 2)); if (isSmallVariant()) { @@ -501,6 +502,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent invalidate(); repaint(); setSize(getPreferredSize()); + repaint(); } }