mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-10733 Mac OSX: disabling JSHint results in buggy presentation of version combo
This commit is contained in:
@@ -356,6 +356,11 @@ public class UIUtil {
|
||||
|
||||
public static void setEnabled(Component component, boolean enabled, boolean recursively) {
|
||||
component.setEnabled(enabled);
|
||||
if (component instanceof JComboBox) {
|
||||
// On Mac JComboBox instances have children: com.apple.laf.AquaComboBoxButton and javax.swing.CellRendererPane.
|
||||
// Disabling these children results in ugly UI. See WEB-10733
|
||||
return;
|
||||
}
|
||||
if (component instanceof JLabel) {
|
||||
Color color = enabled ? getLabelForeground() : getLabelDisabledForeground();
|
||||
if (color != null) {
|
||||
@@ -2668,7 +2673,7 @@ public class UIUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private static final Color DECORATED_ROW_BG_COLOR = new JBColor(new Color(242, 245, 249), new Color(65, 69, 71));
|
||||
private static final Color DECORATED_ROW_BG_COLOR = new JBColor(new Color(242, 245, 249), new Color(79, 83, 84));
|
||||
|
||||
public static Color getDecoratedRowColor() {
|
||||
return DECORATED_ROW_BG_COLOR;
|
||||
|
||||
Reference in New Issue
Block a user