From a5d4611aa1d0049df3c92c0a4397e29a641329af Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 18 Mar 2020 14:58:21 +0100 Subject: [PATCH] ToggleButtons should not be eligible to receive the shadow style automatically. --- .../java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {