Browse Source

ToggleButtons should not be eligible to receive the shadow style automatically.

pull/97/head
weisj 5 years ago
parent
commit
a5d4611aa1
  1. 2
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

2
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

@ -235,7 +235,7 @@ public class DarkButtonUI extends BasicButtonUI implements PropertyChangeListene
} }
protected static boolean doConvertToShadow(final AbstractButton b) { protected static boolean doConvertToShadow(final AbstractButton b) {
return isIconOnly(b) && !b.isFocusable() && convertIconButtonToShadow(b); return isIconOnly(b) && !b.isFocusable() && convertIconButtonToShadow(b) && (b instanceof JButton);
} }
protected Color getBackgroundColor(final JComponent c) { protected Color getBackgroundColor(final JComponent c) {

Loading…
Cancel
Save