From ba9d8bcbb251259732e312f121b8334131d37522 Mon Sep 17 00:00:00 2001 From: weisj Date: Tue, 20 Oct 2020 00:13:11 +0200 Subject: [PATCH] Correct spelling error. --- .../com/github/weisj/darklaf/ui/button/DarkButtonUI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 286424dc..daa7a320 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 @@ -183,12 +183,12 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants { } else if (b.getBorder() instanceof DarkButtonBorder) { paintDarklafBorderBackground(b, g2, arc, width, height); } else { - paintDefaultBackgroud(b, g2, width, height); + paintDefaultBackground(b, g2, width, height); } } } - protected void paintDefaultBackgroud(final AbstractButton b, final Graphics2D g, final int width, + protected void paintDefaultBackground(final AbstractButton b, final Graphics2D g, final int width, final int height) { Insets ins = b.getInsets(); g.setColor(getBackgroundColor(b)); @@ -212,7 +212,7 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants { g.setComposite(comp); } - g.setColor(getBackgroundColor(c)); + g.setColor(c.getBackground()); paintBackgroundRect(g, effectiveArc, bgRect); }