diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java index 70f841d1..969ea03f 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java @@ -262,8 +262,9 @@ public class ColorTriangle extends JComponent { return opacity; } - public void setOpacity(final double opacity) { + public void setOpacity(final Object source, final double opacity) { this.opacity = opacity; + fireColorChanged(source); } public int[] getValuesForModel(final DarkColorModel model) { diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorWheelPanel.java b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorWheelPanel.java index 6bc0a11c..046be8a5 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorWheelPanel.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorWheelPanel.java @@ -49,7 +49,7 @@ public class ColorWheelPanel extends JPanel { opacitySlider.setToolTipText("Opacity"); opacitySlider.setUnits(opacityInPercent ? SlideComponent.Unit.PERCENT : SlideComponent.Unit.LEVEL); opacitySlider.addListener(integer -> { - colorWheel.setOpacity(integer / 255.0); + colorWheel.setOpacity(opacitySlider, integer / 255.0); ColorWheelPanel.this.repaint(); }); add(opacitySlider, BorderLayout.SOUTH);