diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java index 1f585521..6e7e12c4 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java @@ -103,7 +103,7 @@ import com.formdev.flatlaf.util.UIScale; * @uiDefault ComboBox.buttonDisabledArrowColor Color * @uiDefault ComboBox.buttonHoverArrowColor Color * @uiDefault ComboBox.buttonPressedArrowColor Color - * @uiDefault ComboBox.popupFocusedBackground Color optional + * @uiDefault ComboBox.popupBackground Color optional * * @author Karl Tauber */ @@ -131,7 +131,7 @@ public class FlatComboBoxUI protected Color buttonHoverArrowColor; protected Color buttonPressedArrowColor; - protected Color popupFocusedBackground; + protected Color popupBackground; private MouseListener hoverListener; protected boolean hover; @@ -215,7 +215,7 @@ public class FlatComboBoxUI buttonHoverArrowColor = UIManager.getColor( "ComboBox.buttonHoverArrowColor" ); buttonPressedArrowColor = UIManager.getColor( "ComboBox.buttonPressedArrowColor" ); - popupFocusedBackground = UIManager.getColor( "ComboBox.popupFocusedBackground" ); + popupBackground = UIManager.getColor( "ComboBox.popupBackground" ); // set maximumRowCount int maximumRowCount = UIManager.getInt( "ComboBox.maximumRowCount" ); @@ -248,7 +248,7 @@ public class FlatComboBoxUI buttonHoverArrowColor = null; buttonPressedArrowColor = null; - popupFocusedBackground = null; + popupBackground = null; MigLayoutVisualPadding.uninstall( comboBox ); } @@ -727,8 +727,8 @@ public class FlatComboBoxUI super.configureList(); list.setCellRenderer( new PopupListCellRenderer() ); - if( popupFocusedBackground != null ) - list.setBackground( popupFocusedBackground ); + if( popupBackground != null ) + list.setBackground( popupBackground ); } @Override diff --git a/flatlaf-testing/src/main/resources/com/formdev/flatlaf/testing/FlatTestLaf.properties b/flatlaf-testing/src/main/resources/com/formdev/flatlaf/testing/FlatTestLaf.properties index cc4d76a7..589e78dd 100644 --- a/flatlaf-testing/src/main/resources/com/formdev/flatlaf/testing/FlatTestLaf.properties +++ b/flatlaf-testing/src/main/resources/com/formdev/flatlaf/testing/FlatTestLaf.properties @@ -132,7 +132,7 @@ ComboBox.buttonEditableBackground = #ccc ComboBox.focusedBackground = #ff8 ComboBox.buttonFocusedBackground = #ff0 -ComboBox.popupFocusedBackground = #ffc +ComboBox.popupBackground = #ffc #---- Component ----