IDEA-168273 fix disabled combobox foreground color

This commit is contained in:
Kirill Kirichenko
2017-04-07 16:45:52 +03:00
parent 2928517370
commit 9d408ae4b0
@@ -368,6 +368,7 @@ public class MacIntelliJComboBoxUI extends BasicComboBoxUI {
Rectangle bounds = rectangleForCurrentValue();
if ( !comboBox.isEditable() ) {
listBox.setForeground(comboBox.isEnabled() ? UIManager.getColor("Label.foreground") : UIManager.getColor("Label.disabledForeground"));
paintCurrentValue(g, bounds, comboBox.isPopupVisible());
}
}