FlatMenuArrowIcon: fixed field names

This commit is contained in:
Karl Tauber
2019-09-05 11:33:53 +02:00
parent 4aa3a52c80
commit bcefc56b84

View File

@@ -35,8 +35,8 @@ import javax.swing.UIManager;
public class FlatMenuArrowIcon
extends FlatAbstractIcon
{
protected final Color checkmarkColor = UIManager.getColor( "Menu.icon.arrowColor" );
protected final Color disabledCheckmarkColor = UIManager.getColor( "Menu.icon.disabledArrowColor" );
protected final Color arrowColor = UIManager.getColor( "Menu.icon.arrowColor" );
protected final Color disabledArrowColor = UIManager.getColor( "Menu.icon.disabledArrowColor" );
protected final Color selectionForeground = UIManager.getColor( "Menu.selectionForeground" );
public FlatMenuArrowIcon() {
@@ -62,6 +62,6 @@ public class FlatMenuArrowIcon
if( c instanceof JMenu && ((JMenu)c).isSelected() )
return selectionForeground;
return c.isEnabled() ? checkmarkColor : disabledCheckmarkColor;
return c.isEnabled() ? arrowColor : disabledArrowColor;
}
}