mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
moved TestFlatIconNullComponent to other package and fixed file name (issue #483)
This commit is contained in:
@@ -573,7 +573,10 @@ public class FlatButtonUI
|
||||
public static Color buttonStateColor( Component c, Color enabledColor, Color disabledColor,
|
||||
Color focusedColor, Color hoverColor, Color pressedColor )
|
||||
{
|
||||
if(c != null && !c.isEnabled() )
|
||||
if( c == null )
|
||||
return enabledColor;
|
||||
|
||||
if( !c.isEnabled() )
|
||||
return disabledColor;
|
||||
|
||||
if( c instanceof AbstractButton ) {
|
||||
@@ -586,7 +589,7 @@ public class FlatButtonUI
|
||||
return hoverColor;
|
||||
}
|
||||
|
||||
if( c != null && focusedColor != null && isFocusPainted( c ) && FlatUIUtils.isPermanentFocusOwner( c ) )
|
||||
if( focusedColor != null && isFocusPainted( c ) && FlatUIUtils.isPermanentFocusOwner( c ) )
|
||||
return focusedColor;
|
||||
|
||||
return enabledColor;
|
||||
|
||||
Reference in New Issue
Block a user