Browse Source

Use double the arc size for smoother button shadows.

pull/214/head
weisj 4 years ago
parent
commit
deeb0586b1
  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

@ -182,7 +182,7 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants {
Composite comp = g.getComposite(); Composite comp = g.getComposite();
g.setComposite(PaintUtil.getShadowComposite()); g.setComposite(PaintUtil.getShadowComposite());
int stroke = (int) PaintUtil.getStrokeWidth(g); 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); bgRect.width, bgRect.height);
g.setComposite(comp); g.setComposite(comp);
} }

Loading…
Cancel
Save