diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java index 54f7443b..7a66dd1e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java +++ b/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) { - return isIconOnly(b) && !b.isFocusable() && convertIconButtonToShadow(b); + return isIconOnly(b) && !b.isFocusable() && convertIconButtonToShadow(b) && (b instanceof JButton); } protected Color getBackgroundColor(final JComponent c) {