ComboBox: renamed UI key ComboBox.popupFocusedBackground to ComboBox.popupBackground

This commit is contained in:
Karl Tauber
2021-06-22 08:59:11 +02:00
parent 8a72b30cbc
commit 2a732306a1
2 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -132,7 +132,7 @@ ComboBox.buttonEditableBackground = #ccc
ComboBox.focusedBackground = #ff8
ComboBox.buttonFocusedBackground = #ff0
ComboBox.popupFocusedBackground = #ffc
ComboBox.popupBackground = #ffc
#---- Component ----