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 3dc1e6f3..1ee14b4c 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 @@ -182,7 +182,7 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants { Composite comp = g.getComposite(); g.setComposite(PaintUtil.getShadowComposite()); int stroke = (int) PaintUtil.getStrokeWidth(g); - paintBackgroundRect(g, effectiveArc, bgRect.x, bgRect.y + shadow + stroke, + paintBackgroundRect(g, effectiveArc * 2, bgRect.x, bgRect.y + shadow + stroke, bgRect.width, bgRect.height); g.setComposite(comp); }