mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-148433 OS X default theme: dropdown lists don't look good
(cherry picked from commit 4b4c0776ae1360182e8aee378b040401d5e07d77)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user