diff --git a/img/volumeSlider.gif b/img/volumeSlider.gif new file mode 100644 index 00000000..e59ca7bf Binary files /dev/null and b/img/volumeSlider.gif differ diff --git a/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java b/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java index 3b0e10f4..96b7a729 100644 --- a/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java +++ b/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java @@ -287,6 +287,7 @@ public class DarkSliderUI extends BasicSliderUI implements PropertyChangeListene super.paintVerticalLabel(g, value, label); } + @Override public void paintThumb(final Graphics g2) { Graphics2D g = (Graphics2D) g2; diff --git a/src/main/java/com/github/weisj/darklaf/util/DarkUIUtil.java b/src/main/java/com/github/weisj/darklaf/util/DarkUIUtil.java index 09e5cec7..9284cfc3 100644 --- a/src/main/java/com/github/weisj/darklaf/util/DarkUIUtil.java +++ b/src/main/java/com/github/weisj/darklaf/util/DarkUIUtil.java @@ -110,7 +110,7 @@ public final class DarkUIUtil { g.setComposite(DarkUIUtil.GLOW_ALPHA); Outline.focus.setGraphicsColor(g, true); - float blw = (float) (6.0f / Scale.SCALE); + float blw = 3.0f; Path2D shape = new Path2D.Float(Path2D.WIND_EVEN_ODD); shape.append(new Ellipse2D.Float(x - blw, y - blw, width + blw * 2, height + blw * 2), false); shape.append(new Ellipse2D.Float(x, y, width, height), false); @@ -120,7 +120,7 @@ public final class DarkUIUtil { public static void paintLineBorder(final Graphics2D g, final float x, final float y, final float width, final float height, final int arc, final boolean growByLW) { - float lw = (float) (1.0f / Scale.SCALE); + float lw = 0.5f; float adj = growByLW ? lw : 0; GraphicsContext config = GraphicsUtil.setupStrokePainting(g); Path2D border = new Path2D.Float(Path2D.WIND_EVEN_ODD);